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