pub struct AuthMessage { /* private fields */ }Expand description
Message descriptor that can be translated by the host application.
Implementations§
Source§impl AuthMessage
impl AuthMessage
Sourcepub fn new(key: AuthMessageKey) -> Self
pub fn new(key: AuthMessageKey) -> Self
Creates a new message from the provided key.
Sourcepub fn from_static(key: &'static str) -> Self
pub fn from_static(key: &'static str) -> Self
Creates a new message from a static key literal.
Sourcepub fn with_arg(
self,
name: impl Into<Cow<'static, str>>,
value: impl Into<Cow<'static, str>>,
) -> Self
pub fn with_arg( self, name: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>>, ) -> Self
Adds an argument to the message.
Sourcepub fn key(&self) -> &AuthMessageKey
pub fn key(&self) -> &AuthMessageKey
Returns the message key.
Sourcepub fn args(&self) -> &[AuthMessageArg]
pub fn args(&self) -> &[AuthMessageArg]
Returns the message arguments.
Trait Implementations§
Source§impl Clone for AuthMessage
impl Clone for AuthMessage
Source§impl Debug for AuthMessage
impl Debug for AuthMessage
Source§impl<'de> Deserialize<'de> for AuthMessage
impl<'de> Deserialize<'de> for AuthMessage
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 AuthMessage
Source§impl PartialEq for AuthMessage
impl PartialEq for AuthMessage
Source§impl Serialize for AuthMessage
impl Serialize for AuthMessage
impl StructuralPartialEq for AuthMessage
Auto Trait Implementations§
impl Freeze for AuthMessage
impl RefUnwindSafe for AuthMessage
impl Send for AuthMessage
impl Sync for AuthMessage
impl Unpin for AuthMessage
impl UnsafeUnpin for AuthMessage
impl UnwindSafe for AuthMessage
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