pub struct GeneratedLabel { /* private fields */ }Expand description
One generated service metadata label.
Implementations§
Source§impl GeneratedLabel
impl GeneratedLabel
Sourcepub fn new(
name: impl Into<String>,
value: GeneratedString,
) -> Result<Self, GenerationError>
pub fn new( name: impl Into<String>, value: GeneratedString, ) -> Result<Self, GenerationError>
Creates a label with an explicit string value, including an empty value.
§Errors
Rejects an empty or NUL-bearing label name. Values are already validated by
GeneratedString.
Sourcepub const fn value(&self) -> &GeneratedString
pub const fn value(&self) -> &GeneratedString
Returns the label value through its explicit sensitivity boundary.
Trait Implementations§
Source§impl Clone for GeneratedLabel
impl Clone for GeneratedLabel
Source§fn clone(&self) -> GeneratedLabel
fn clone(&self) -> GeneratedLabel
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 GeneratedLabel
impl Debug for GeneratedLabel
impl Eq for GeneratedLabel
Source§impl PartialEq for GeneratedLabel
impl PartialEq for GeneratedLabel
impl StructuralPartialEq for GeneratedLabel
Auto Trait Implementations§
impl Freeze for GeneratedLabel
impl RefUnwindSafe for GeneratedLabel
impl Send for GeneratedLabel
impl Sync for GeneratedLabel
impl Unpin for GeneratedLabel
impl UnsafeUnpin for GeneratedLabel
impl UnwindSafe for GeneratedLabel
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