Struct sentry_types::Auth
source · [−]pub struct Auth { /* private fields */ }
Expand description
Represents an auth header.
Implementations
pub fn from_pairs<'a, I, K, V>(pairs: I) -> Result<Auth, ParseAuthError> where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str>,
V: Into<Cow<'a, str>>,
pub fn from_pairs<'a, I, K, V>(pairs: I) -> Result<Auth, ParseAuthError> where
I: IntoIterator<Item = (K, V)>,
K: AsRef<str>,
V: Into<Cow<'a, str>>,
Creates an auth header from key value pairs.
Creates an auth header from a query string.
Returns the timestamp the client defined
Returns the public key
Returns the client’s secret if it authenticated with a secret.
Returns true if the authentication implies public auth (no secret)
Returns the client’s agent
Trait Implementations
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
type Err = ParseAuthError
type Err = ParseAuthError
The associated error which can be returned from parsing.
Auto Trait Implementations
impl RefUnwindSafe for Auth
impl UnwindSafe for Auth
Blanket Implementations
Mutably borrows from an owned value. Read more