pub struct RpcRequestId(/* private fields */);Implementations§
Source§impl RpcRequestId
impl RpcRequestId
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 RpcRequestId
impl AsRef<str> for RpcRequestId
Source§impl Clone for RpcRequestId
impl Clone for RpcRequestId
Source§fn clone(&self) -> RpcRequestId
fn clone(&self) -> RpcRequestId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RpcRequestId
impl Debug for RpcRequestId
Source§impl Display for RpcRequestId
impl Display for RpcRequestId
Source§impl FromStr for RpcRequestId
impl FromStr for RpcRequestId
Source§impl Hash for RpcRequestId
impl Hash for RpcRequestId
Source§impl Ord for RpcRequestId
impl Ord for RpcRequestId
Source§fn cmp(&self, other: &RpcRequestId) -> Ordering
fn cmp(&self, other: &RpcRequestId) -> Ordering
1.21.0 (const: unstable) · 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 RpcRequestId
impl PartialEq for RpcRequestId
Source§fn eq(&self, other: &RpcRequestId) -> bool
fn eq(&self, other: &RpcRequestId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RpcRequestId
impl PartialOrd for RpcRequestId
Source§impl TryFrom<&str> for RpcRequestId
impl TryFrom<&str> for RpcRequestId
impl Eq for RpcRequestId
impl StructuralPartialEq for RpcRequestId
Auto Trait Implementations§
impl Freeze for RpcRequestId
impl RefUnwindSafe for RpcRequestId
impl Send for RpcRequestId
impl Sync for RpcRequestId
impl Unpin for RpcRequestId
impl UnsafeUnpin for RpcRequestId
impl UnwindSafe for RpcRequestId
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