Struct actix_tools::sentry::sentry_client::Dsn [−]
pub struct Dsn { /* fields omitted */ }Represents a Sentry dsn.
Methods
impl Dsn
impl Dsnpub fn to_auth(&self, client_agent: Option<&str>) -> Auth
pub fn to_auth(&self, client_agent: Option<&str>) -> AuthConverts the dsn into an auth object.
This always attaches the latest and greatest protocol version to the auth header.
pub fn store_api_url(&self) -> Url
pub fn store_api_url(&self) -> UrlReturns the submission API URL.
pub fn scheme(&self) -> Scheme
pub fn scheme(&self) -> SchemeReturns the scheme
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 secret_key
pub fn host(&self) -> &str
pub fn host(&self) -> &strReturns the host
pub fn port(&self) -> u16
pub fn port(&self) -> u16Returns the port
pub fn project_id(&self) -> ProjectId
pub fn project_id(&self) -> ProjectIdReturns the project_id
Trait Implementations
impl IntoClient for Dsn[src]
impl IntoClient for Dsnfn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)Converts the object into a client config tuple of DSN and options. Read more
fn into_client(self) -> Option<Client>[src]
fn into_client(self) -> Option<Client>Converts the object into a client right away.
impl<'a> IntoClient for &'a Dsn[src]
impl<'a> IntoClient for &'a Dsnfn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)Converts the object into a client config tuple of DSN and options. Read more
fn into_client(self) -> Option<Client>[src]
fn into_client(self) -> Option<Client>Converts the object into a client right away.
impl Serialize for Dsn
impl Serialize for Dsnfn 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 Hash for Dsn
impl Hash for Dsnfn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Display for Dsn
impl Display for Dsnfn 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 Dsn
impl Clone for Dsnfn clone(&self) -> Dsn
fn clone(&self) -> DsnReturns 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 Dsn
impl FromStr for Dsntype Err = DsnParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Dsn, DsnParseError>
fn from_str(s: &str) -> Result<Dsn, DsnParseError>Parses a string s to return a value of this type. Read more
impl Debug for Dsn
impl Debug for Dsnfn 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 Dsn
impl<'de> Deserialize<'de> for Dsnfn deserialize<D>(
deserializer: D
) -> Result<Dsn, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Dsn, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Eq for Dsn
impl Eq for Dsnimpl PartialEq<Dsn> for Dsn
impl PartialEq<Dsn> for Dsn