[−][src]Struct sentry_types::Auth
Represents an auth header.
Methods
impl Auth
[src]
pub fn from_pairs<'a, 'b, I: Iterator<Item = (Cow<'a, str>, Cow<'b, str>)>>(
pairs: I
) -> Result<Auth, AuthParseError>
[src]
pairs: I
) -> Result<Auth, AuthParseError>
Creates an auth header from key value pairs.
pub fn from_querystring(qs: &[u8]) -> Result<Auth, AuthParseError>
[src]
Creates an auth header from a query string.
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 Clone for Auth
[src]
fn clone(&self) -> Auth
[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 Debug for Auth
[src]
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]
impl Serialize for Auth
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Auth
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,