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