pub struct GraphqlName(/* private fields */);Implementations§
Source§impl GraphqlName
impl GraphqlName
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 GraphqlName
impl AsRef<str> for GraphqlName
Source§impl Clone for GraphqlName
impl Clone for GraphqlName
Source§fn clone(&self) -> GraphqlName
fn clone(&self) -> GraphqlName
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 GraphqlName
impl Debug for GraphqlName
Source§impl Display for GraphqlName
impl Display for GraphqlName
Source§impl FromStr for GraphqlName
impl FromStr for GraphqlName
Source§impl Hash for GraphqlName
impl Hash for GraphqlName
Source§impl Ord for GraphqlName
impl Ord for GraphqlName
Source§fn cmp(&self, other: &GraphqlName) -> Ordering
fn cmp(&self, other: &GraphqlName) -> 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 GraphqlName
impl PartialEq for GraphqlName
Source§impl PartialOrd for GraphqlName
impl PartialOrd for GraphqlName
Source§impl TryFrom<&str> for GraphqlName
impl TryFrom<&str> for GraphqlName
impl Eq for GraphqlName
impl StructuralPartialEq for GraphqlName
Auto Trait Implementations§
impl Freeze for GraphqlName
impl RefUnwindSafe for GraphqlName
impl Send for GraphqlName
impl Sync for GraphqlName
impl Unpin for GraphqlName
impl UnsafeUnpin for GraphqlName
impl UnwindSafe for GraphqlName
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