pub struct RpcErrorMessage(/* private fields */);Implementations§
Source§impl RpcErrorMessage
impl RpcErrorMessage
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
Creates validated text metadata.
§Errors
Returns ApiPrimitiveError when the value is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the value and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for RpcErrorMessage
impl AsRef<str> for RpcErrorMessage
Source§impl Clone for RpcErrorMessage
impl Clone for RpcErrorMessage
Source§fn clone(&self) -> RpcErrorMessage
fn clone(&self) -> RpcErrorMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RpcErrorMessage
impl Debug for RpcErrorMessage
Source§impl Display for RpcErrorMessage
impl Display for RpcErrorMessage
Source§impl FromStr for RpcErrorMessage
impl FromStr for RpcErrorMessage
Source§impl Hash for RpcErrorMessage
impl Hash for RpcErrorMessage
Source§impl Ord for RpcErrorMessage
impl Ord for RpcErrorMessage
Source§fn cmp(&self, other: &RpcErrorMessage) -> Ordering
fn cmp(&self, other: &RpcErrorMessage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RpcErrorMessage
impl PartialEq for RpcErrorMessage
Source§impl PartialOrd for RpcErrorMessage
impl PartialOrd for RpcErrorMessage
Source§impl TryFrom<&str> for RpcErrorMessage
impl TryFrom<&str> for RpcErrorMessage
impl Eq for RpcErrorMessage
impl StructuralPartialEq for RpcErrorMessage
Auto Trait Implementations§
impl Freeze for RpcErrorMessage
impl RefUnwindSafe for RpcErrorMessage
impl Send for RpcErrorMessage
impl Sync for RpcErrorMessage
impl Unpin for RpcErrorMessage
impl UnsafeUnpin for RpcErrorMessage
impl UnwindSafe for RpcErrorMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more