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