Struct sentry_types::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 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 Eq for Dsn
[src]
impl PartialEq 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 Hash for Dsn
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
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 Debug for Dsn
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Dsn
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. 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 Serialize for Dsn
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
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<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more