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