Struct actix_tools::sentry::sentry_client::internals::ProjectId [−]
pub struct ProjectId { /* fields omitted */ }Represents a project ID.
This is a thin wrapper around IDs supported by the Sentry server. The idea is that the sentry server generally can switch the ID format in the future (eg: we implement the IDs as strings and not as integers) but the actual ID format that is encountered are currently indeed integers.
To be future proof we support either integers or "short" strings.
Trait Implementations
impl Serialize for ProjectId
impl Serialize for ProjectIdfn 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 PartialOrd<ProjectId> for ProjectId
impl PartialOrd<ProjectId> for ProjectIdfn partial_cmp(&self, other: &ProjectId) -> Option<Ordering>
fn partial_cmp(&self, other: &ProjectId) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &ProjectId) -> bool
fn lt(&self, other: &ProjectId) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &ProjectId) -> bool
fn le(&self, other: &ProjectId) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &ProjectId) -> bool
fn gt(&self, other: &ProjectId) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &ProjectId) -> bool
fn ge(&self, other: &ProjectId) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Hash for ProjectId
impl Hash for ProjectIdfn 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 ProjectId
impl Display for ProjectIdfn 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 ProjectId
impl Clone for ProjectIdfn clone(&self) -> ProjectId
fn clone(&self) -> ProjectIdReturns 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 ProjectId
impl FromStr for ProjectIdtype Err = ProjectIdParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ProjectId, ProjectIdParseError>
fn from_str(s: &str) -> Result<ProjectId, ProjectIdParseError>Parses a string s to return a value of this type. Read more
impl Debug for ProjectId
impl Debug for ProjectIdfn 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 ProjectId
impl<'de> Deserialize<'de> for ProjectIdfn deserialize<D>(
deserializer: D
) -> Result<ProjectId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<ProjectId, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Copy for ProjectId
impl Copy for ProjectIdimpl Ord for ProjectId
impl Ord for ProjectIdfn cmp(&self, other: &ProjectId) -> Ordering
fn cmp(&self, other: &ProjectId) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Eq for ProjectId
impl Eq for ProjectIdimpl PartialEq<ProjectId> for ProjectId
impl PartialEq<ProjectId> for ProjectIdfn eq(&self, other: &ProjectId) -> bool
fn eq(&self, other: &ProjectId) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ProjectId) -> bool
fn ne(&self, other: &ProjectId) -> boolThis method tests for !=.
impl From<u8> for ProjectId
impl From<u8> for ProjectIdimpl From<i16> for ProjectId
impl From<i16> for ProjectIdimpl From<i64> for ProjectId
impl From<i64> for ProjectIdimpl From<i32> for ProjectId
impl From<i32> for ProjectIdimpl From<usize> for ProjectId
impl From<usize> for ProjectIdimpl From<u64> for ProjectId
impl From<u64> for ProjectIdimpl From<u16> for ProjectId
impl From<u16> for ProjectIdimpl From<i8> for ProjectId
impl From<i8> for ProjectIdimpl From<u32> for ProjectId
impl From<u32> for ProjectId