Struct actix_tools::sentry::sentry_client::Dsn [−]
pub struct Dsn { /* fields omitted */ }
Represents a Sentry dsn.
Methods
impl Dsn
impl Dsn
pub fn to_auth(&self, client_agent: Option<&str>) -> Auth
pub fn to_auth(&self, client_agent: Option<&str>) -> Auth
Converts 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) -> Url
Returns the submission API URL.
pub fn scheme(&self) -> Scheme
pub fn scheme(&self) -> Scheme
Returns the scheme
pub fn public_key(&self) -> &str
pub fn public_key(&self) -> &str
Returns 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) -> &str
Returns the host
pub fn port(&self) -> u16
pub fn port(&self) -> u16
Returns the port
pub fn project_id(&self) -> ProjectId
pub fn project_id(&self) -> ProjectId
Returns the project_id
Trait Implementations
impl IntoClient for Dsn
[src]
impl IntoClient for Dsn
fn 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 Dsn
fn 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 Hash for Dsn
impl Hash for Dsn
fn 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 Dsn
fn 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 Dsn
fn clone(&self) -> Dsn
fn clone(&self) -> Dsn
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)
Performs copy-assignment from source
. Read more
impl FromStr for Dsn
impl FromStr for Dsn
type 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 Dsn
fn 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 Serialize for Dsn
impl Serialize for Dsn
fn 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 Eq for Dsn
impl Eq for Dsn
impl<'de> Deserialize<'de> for Dsn
impl<'de> Deserialize<'de> for Dsn
fn 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 PartialEq<Dsn> for Dsn
impl PartialEq<Dsn> for Dsn