Struct sentry_types::Auth [−][src]
pub struct Auth { /* fields omitted */ }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 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 = ParseAuthErrorThe associated error which can be returned from parsing.
Auto Trait Implementations
impl RefUnwindSafe for Authimpl UnwindSafe for AuthBlanket Implementations
Mutably borrows from an owned value. Read more