Struct sentry_types::ProjectId [−][src]
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 Copy for ProjectId
[src]
impl Copy for ProjectId
impl Clone for ProjectId
[src]
impl Clone for ProjectId
fn clone(&self) -> ProjectId
[src]
fn clone(&self) -> ProjectId
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 PartialEq for ProjectId
[src]
impl PartialEq for ProjectId
fn eq(&self, other: &ProjectId) -> bool
[src]
fn eq(&self, other: &ProjectId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ProjectId) -> bool
[src]
fn ne(&self, other: &ProjectId) -> bool
This method tests for !=
.
impl Eq for ProjectId
[src]
impl Eq for ProjectId
impl Ord for ProjectId
[src]
impl Ord for ProjectId
fn cmp(&self, other: &ProjectId) -> Ordering
[src]
fn cmp(&self, other: &ProjectId) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for ProjectId
[src]
impl PartialOrd for ProjectId
fn partial_cmp(&self, other: &ProjectId) -> Option<Ordering>
[src]
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
[src]
fn lt(&self, other: &ProjectId) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ProjectId) -> bool
[src]
fn le(&self, other: &ProjectId) -> bool
This 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
[src]
fn gt(&self, other: &ProjectId) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ProjectId) -> bool
[src]
fn ge(&self, other: &ProjectId) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for ProjectId
[src]
impl Hash for ProjectId
fn 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 Display for ProjectId
[src]
impl Display for ProjectId
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for ProjectId
[src]
impl Debug for ProjectId
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<usize> for ProjectId
[src]
impl From<usize> for ProjectId
impl From<u8> for ProjectId
[src]
impl From<u8> for ProjectId
impl From<u16> for ProjectId
[src]
impl From<u16> for ProjectId
impl From<u32> for ProjectId
[src]
impl From<u32> for ProjectId
impl From<u64> for ProjectId
[src]
impl From<u64> for ProjectId
impl From<i8> for ProjectId
[src]
impl From<i8> for ProjectId
impl From<i16> for ProjectId
[src]
impl From<i16> for ProjectId
impl From<i32> for ProjectId
[src]
impl From<i32> for ProjectId
impl From<i64> for ProjectId
[src]
impl From<i64> for ProjectId
impl FromStr for ProjectId
[src]
impl FromStr for ProjectId
type Err = ProjectIdParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ProjectId, ProjectIdParseError>
[src]
fn from_str(s: &str) -> Result<ProjectId, ProjectIdParseError>
Parses a string s
to return a value of this type. Read more
impl Serialize for ProjectId
[src]
impl Serialize for ProjectId
fn 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 ProjectId
[src]
impl<'de> Deserialize<'de> for ProjectId
fn 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