pub enum ResourcePathSegmentKind {
Domain,
SkewerCase,
DomainOrSkewerCase,
Email,
Version,
Path,
Root,
}
Variants§
Implementations§
Source§impl ResourcePathSegmentKind
impl ResourcePathSegmentKind
pub fn matches(&self, part: &ResourcePathSegment) -> bool
pub fn from_str(&self, s: &str) -> Result<ResourcePathSegment, Error>
Trait Implementations§
Source§impl Clone for ResourcePathSegmentKind
impl Clone for ResourcePathSegmentKind
Source§fn clone(&self) -> ResourcePathSegmentKind
fn clone(&self) -> ResourcePathSegmentKind
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 ResourcePathSegmentKind
impl Debug for ResourcePathSegmentKind
Source§impl<'de> Deserialize<'de> for ResourcePathSegmentKind
impl<'de> Deserialize<'de> for ResourcePathSegmentKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ResourcePathSegmentKind
impl Hash for ResourcePathSegmentKind
Source§impl PartialEq for ResourcePathSegmentKind
impl PartialEq for ResourcePathSegmentKind
Source§impl Serialize for ResourcePathSegmentKind
impl Serialize for ResourcePathSegmentKind
Source§impl ToString for ResourcePathSegmentKind
impl ToString for ResourcePathSegmentKind
impl Eq for ResourcePathSegmentKind
impl StructuralPartialEq for ResourcePathSegmentKind
Auto Trait Implementations§
impl Freeze for ResourcePathSegmentKind
impl RefUnwindSafe for ResourcePathSegmentKind
impl Send for ResourcePathSegmentKind
impl Sync for ResourcePathSegmentKind
impl Unpin for ResourcePathSegmentKind
impl UnwindSafe for ResourcePathSegmentKind
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