pub struct Claim(/* private fields */);Expand description
An opaque bearer claim. Debug output is always redacted, including when a containing request or reply is formatted. Never log the serialized body or exposed value, or put the claim in argv or an environment variable.
Implementations§
Source§impl Claim
impl Claim
Sourcepub fn new(value: impl Into<String>) -> Self
pub fn new(value: impl Into<String>) -> Self
Wrap an opaque wire value. Only the daemon validates and consumes claims; constructing this value does not establish a connection’s identity.
Sourcepub fn expose_secret(&self) -> &str
pub fn expose_secret(&self) -> &str
Access the bearer value for an explicit handoff, never for logging.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Claim
impl<'de> Deserialize<'de> for Claim
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
impl Eq for Claim
impl StructuralPartialEq for Claim
Auto Trait Implementations§
impl Forget for Claim
impl Freeze for Claim
impl Move for Claim
impl RefUnwindSafe for Claim
impl Send for Claim
impl Sync for Claim
impl Unpin for Claim
impl UnsafeUnpin for Claim
impl UnwindSafe for Claim
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