pub struct SubjectSegment(pub String);Expand description
A single non-empty segment of a Subject.
Segments are case-sensitive, may contain a-zA-Z0-9_-, and must be
non-empty. The separator . is between segments, never within.
Tuple Fields§
§0: StringImplementations§
Source§impl SubjectSegment
impl SubjectSegment
Trait Implementations§
Source§impl Clone for SubjectSegment
impl Clone for SubjectSegment
Source§fn clone(&self) -> SubjectSegment
fn clone(&self) -> SubjectSegment
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 SubjectSegment
impl Debug for SubjectSegment
Source§impl<'de> Deserialize<'de> for SubjectSegment
impl<'de> Deserialize<'de> for SubjectSegment
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 Display for SubjectSegment
impl Display for SubjectSegment
impl Eq for SubjectSegment
Source§impl Hash for SubjectSegment
impl Hash for SubjectSegment
Source§impl PartialEq for SubjectSegment
impl PartialEq for SubjectSegment
Source§impl Serialize for SubjectSegment
impl Serialize for SubjectSegment
impl StructuralPartialEq for SubjectSegment
Auto Trait Implementations§
impl Freeze for SubjectSegment
impl RefUnwindSafe for SubjectSegment
impl Send for SubjectSegment
impl Sync for SubjectSegment
impl Unpin for SubjectSegment
impl UnsafeUnpin for SubjectSegment
impl UnwindSafe for SubjectSegment
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