pub struct ContextLabel(/* private fields */);Expand description
Safe metadata, bounded and exact; credentials/URL/query syntax is rejected.
Implementations§
Source§impl ContextLabel
impl ContextLabel
pub fn checked(value: &str) -> Result<Self, ContextConflict>
Trait Implementations§
Source§impl Clone for ContextLabel
impl Clone for ContextLabel
Source§fn clone(&self) -> ContextLabel
fn clone(&self) -> ContextLabel
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 moreimpl Copy for ContextLabel
impl Eq for ContextLabel
Source§impl PartialEq for ContextLabel
impl PartialEq for ContextLabel
Source§impl Serialize for ContextLabel
impl Serialize for ContextLabel
impl StructuralPartialEq for ContextLabel
Auto Trait Implementations§
impl Freeze for ContextLabel
impl RefUnwindSafe for ContextLabel
impl Send for ContextLabel
impl Sync for ContextLabel
impl Unpin for ContextLabel
impl UnsafeUnpin for ContextLabel
impl UnwindSafe for ContextLabel
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