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