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 ProjectIdimpl Clone for ProjectId[src]
impl Clone for ProjectIdfn clone(&self) -> ProjectId[src]
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 PartialEq for ProjectId[src]
impl PartialEq for ProjectIdfn eq(&self, other: &ProjectId) -> bool[src]
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[src]
fn ne(&self, other: &ProjectId) -> boolThis method tests for !=.
impl Eq for ProjectId[src]
impl Eq for ProjectIdimpl Ord for ProjectId[src]
impl Ord for ProjectIdfn cmp(&self, other: &ProjectId) -> Ordering[src]
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 PartialOrd for ProjectId[src]
impl PartialOrd for ProjectIdfn 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) -> boolThis 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) -> 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[src]
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[src]
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[src]
impl Hash for ProjectIdfn 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 ProjectIdfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Debug for ProjectId[src]
impl Debug for ProjectIdfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<usize> for ProjectId[src]
impl From<usize> for ProjectIdimpl From<u8> for ProjectId[src]
impl From<u8> for ProjectIdimpl From<u16> for ProjectId[src]
impl From<u16> for ProjectIdimpl From<u32> for ProjectId[src]
impl From<u32> for ProjectIdimpl From<u64> for ProjectId[src]
impl From<u64> for ProjectIdimpl From<i8> for ProjectId[src]
impl From<i8> for ProjectIdimpl From<i16> for ProjectId[src]
impl From<i16> for ProjectIdimpl From<i32> for ProjectId[src]
impl From<i32> for ProjectIdimpl From<i64> for ProjectId[src]
impl From<i64> for ProjectIdimpl FromStr for ProjectId[src]
impl FromStr for ProjectIdtype 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 ProjectIdfn 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 ProjectIdfn 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