Struct sentry_types::Dsn [−][src]
pub struct Dsn { /* fields omitted */ }Represents a Sentry dsn.
Methods
impl Dsn[src]
impl Dsnpub fn to_auth(&self, client_agent: Option<&str>) -> Auth[src]
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[src]
pub fn store_api_url(&self) -> UrlReturns the submission API URL.
pub fn scheme(&self) -> Scheme[src]
pub fn scheme(&self) -> SchemeReturns the scheme
pub fn public_key(&self) -> &str[src]
pub fn public_key(&self) -> &strReturns the public_key
pub fn secret_key(&self) -> Option<&str>[src]
pub fn secret_key(&self) -> Option<&str>Returns secret_key
pub fn host(&self) -> &str[src]
pub fn host(&self) -> &strReturns the host
pub fn port(&self) -> u16[src]
pub fn port(&self) -> u16Returns the port
pub fn project_id(&self) -> ProjectId[src]
pub fn project_id(&self) -> ProjectIdReturns the project_id
Trait Implementations
impl Clone for Dsn[src]
impl Clone for Dsnfn clone(&self) -> Dsn[src]
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 Eq for Dsn[src]
impl Eq for Dsnimpl PartialEq for Dsn[src]
impl PartialEq for Dsnfn eq(&self, other: &Dsn) -> bool[src]
fn eq(&self, other: &Dsn) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Dsn) -> bool[src]
fn ne(&self, other: &Dsn) -> boolThis method tests for !=.
impl Hash for Dsn[src]
impl Hash for Dsnfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)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 Debug for Dsn[src]
impl Debug for Dsnfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Dsn[src]
impl Display for Dsnfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for Dsn[src]
impl FromStr for Dsntype Err = DsnParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Dsn, DsnParseError>[src]
fn from_str(s: &str) -> Result<Dsn, DsnParseError>Parses a string s to return a value of this type. Read more
impl Serialize for Dsn[src]
impl Serialize for Dsnfn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Dsn[src]
impl<'de> Deserialize<'de> for Dsnfn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more