Struct sentry::Dsn
[−]
[src]
pub struct Dsn { /* fields omitted */ }
Represents a Sentry dsn.
Methods
impl Dsn
[src]
pub fn to_auth(&self, client_agent: Option<&str>) -> Auth
[src]
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
[src]
Returns the submission API URL.
pub fn scheme(&self) -> Scheme
[src]
Returns the scheme
pub fn public_key(&self) -> &str
[src]
Returns the public_key
pub fn secret_key(&self) -> Option<&str>
[src]
Returns secret_key
pub fn host(&self) -> &str
[src]
Returns the host
pub fn port(&self) -> u16
[src]
Returns the port
pub fn project_id(&self) -> ProjectId
[src]
Returns the project_id
Trait Implementations
impl Display for Dsn
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Serialize for Dsn
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&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<'de> Deserialize<'de> for Dsn
[src]
fn deserialize<D>(
deserializer: D
) -> Result<Dsn, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Dsn, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl FromStr for Dsn
[src]
type Err = DsnParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Dsn, DsnParseError>
[src]
Parses a string s
to return a value of this type. Read more
impl Eq for Dsn
[src]
impl Hash for Dsn
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq<Dsn> for Dsn
[src]
fn eq(&self, __arg_0: &Dsn) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Dsn) -> bool
[src]
This method tests for !=
.
impl Clone for Dsn
[src]
fn clone(&self) -> Dsn
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Dsn
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<'a> IntoClientConfig for &'a Dsn
[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
[src]
Converts the object into a client config tuple of DSN and options. Read more
impl IntoClientConfig for Dsn
[src]
fn into_client_config(self) -> (Option<Dsn>, Option<ClientOptions>)
[src]
Converts the object into a client config tuple of DSN and options. Read more