Struct sentry_types::Auth [−][src]
pub struct Auth { /* fields omitted */ }Represents an auth header.
Methods
impl Auth[src]
impl Authpub 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) -> u16Returns the protocol version the client speaks
pub fn public_key(&self) -> &str[src]
pub fn public_key(&self) -> &strReturns 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) -> boolReturns 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 Authfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Auth[src]
impl Clone for Authfn clone(&self) -> Auth[src]
fn clone(&self) -> AuthReturns 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 Authfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for Auth[src]
impl FromStr for Authtype 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