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