Struct sentry_types::Auth
[−]
[src]
pub struct Auth { /* fields omitted */ }
Represents an auth header.
Methods
impl Auth
[src]
pub fn timestamp(&self) -> Option<DateTime<Utc>>
[src]
Returns the unix timestamp the client defined
pub fn version(&self) -> u16
[src]
Returns the protocol version the client speaks
pub fn public_key(&self) -> &str
[src]
Returns the public key
pub fn secret_key(&self) -> Option<&str>
[src]
Returns the client's secret if it authenticated with a secret.
pub fn is_public(&self) -> bool
[src]
Returns true if the authentication implies public auth (no secret)
pub fn client_agent(&self) -> Option<&str>
[src]
Returns the client's agent
Trait Implementations
impl Debug for Auth
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Auth
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl FromStr for Auth
[src]
type Err = AuthParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Auth, AuthParseError>
[src]
Parses a string s
to return a value of this type. Read more