Struct actix_tools::sentry::sentry_client::internals::Auth [−]
pub struct Auth { /* fields omitted */ }Represents an auth header.
Methods
impl Auth
impl Authpub fn from_pairs<'a, 'b, I>(pairs: I) -> Result<Auth, AuthParseError> where
I: Iterator<Item = (Cow<'a, str>, Cow<'b, str>)>,
pub fn from_pairs<'a, 'b, I>(pairs: I) -> Result<Auth, AuthParseError> where
I: Iterator<Item = (Cow<'a, str>, Cow<'b, str>)>, Creates an auth header from key value pairs.
pub fn from_querystring(qs: &[u8]) -> Result<Auth, AuthParseError>
pub fn from_querystring(qs: &[u8]) -> Result<Auth, AuthParseError>Creates an auth header from a query string.
pub fn timestamp(&self) -> Option<DateTime<Utc>>
pub fn timestamp(&self) -> Option<DateTime<Utc>>Returns the unix timestamp the client defined
pub fn version(&self) -> u16
pub fn version(&self) -> u16Returns the protocol version the client speaks
pub fn public_key(&self) -> &str
pub fn public_key(&self) -> &strReturns the public key
pub fn secret_key(&self) -> Option<&str>
pub fn secret_key(&self) -> Option<&str>Returns the client's secret if it authenticated with a secret.
pub fn is_public(&self) -> bool
pub fn is_public(&self) -> boolReturns true if the authentication implies public auth (no secret)
pub fn client_agent(&self) -> Option<&str>
pub fn client_agent(&self) -> Option<&str>Returns the client's agent
Trait Implementations
impl Serialize for Auth
impl Serialize for Authfn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, Serialize this value into the given Serde serializer. Read more
impl Display for Auth
impl Display for Authfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for Auth
impl Clone for Authfn clone(&self) -> Auth
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)Performs copy-assignment from source. Read more
impl FromStr for Auth
impl FromStr for Authtype Err = AuthParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Auth, AuthParseError>
fn from_str(s: &str) -> Result<Auth, AuthParseError>Parses a string s to return a value of this type. Read more
impl Debug for Auth
impl Debug for Authfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for Auth
impl<'de> Deserialize<'de> for Authfn deserialize<__D>(
__deserializer: __D
) -> Result<Auth, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Auth, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more