Struct relay_base_schema::project::ProjectKey
source · pub struct ProjectKey(/* private fields */);
Expand description
The public key used in a DSN to identify and authenticate a project at Sentry.
Project keys are always 32-character hexadecimal strings.
Implementations§
source§impl ProjectKey
impl ProjectKey
sourcepub fn parse(key: &str) -> Result<Self, ParseProjectKeyError>
pub fn parse(key: &str) -> Result<Self, ParseProjectKeyError>
Parses a ProjectKey
from a string.
sourcepub fn parse_with_flags(
key: &str,
) -> Result<(Self, Vec<&str>), ParseProjectKeyError>
pub fn parse_with_flags( key: &str, ) -> Result<(Self, Vec<&str>), ParseProjectKeyError>
Parses a ProjectKey
from a string with flags.
Trait Implementations§
source§impl Clone for ProjectKey
impl Clone for ProjectKey
source§fn clone(&self) -> ProjectKey
fn clone(&self) -> ProjectKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProjectKey
impl Debug for ProjectKey
source§impl<'de> Deserialize<'de> for ProjectKey
impl<'de> Deserialize<'de> for ProjectKey
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ProjectKey
impl Display for ProjectKey
source§impl FromStr for ProjectKey
impl FromStr for ProjectKey
source§impl Hash for ProjectKey
impl Hash for ProjectKey
source§impl Ord for ProjectKey
impl Ord for ProjectKey
source§fn cmp(&self, other: &ProjectKey) -> Ordering
fn cmp(&self, other: &ProjectKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ProjectKey
impl PartialEq for ProjectKey
source§impl PartialOrd for ProjectKey
impl PartialOrd for ProjectKey
source§impl Serialize for ProjectKey
impl Serialize for ProjectKey
impl Copy for ProjectKey
impl Eq for ProjectKey
impl StructuralPartialEq for ProjectKey
Auto Trait Implementations§
impl Freeze for ProjectKey
impl RefUnwindSafe for ProjectKey
impl Send for ProjectKey
impl Sync for ProjectKey
impl Unpin for ProjectKey
impl UnwindSafe for ProjectKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)