pub struct PrincipleId(pub Ulid);Expand description
Hypothesis principle identifier.
Wire format: prn _<26-char Crockford ULID>.
Tuple Fields§
§0: UlidImplementations§
Source§impl PrincipleId
impl PrincipleId
Trait Implementations§
Source§impl Clone for PrincipleId
impl Clone for PrincipleId
Source§fn clone(&self) -> PrincipleId
fn clone(&self) -> PrincipleId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PrincipleId
impl Debug for PrincipleId
Source§impl Default for PrincipleId
impl Default for PrincipleId
Source§impl<'de> Deserialize<'de> for PrincipleId
impl<'de> Deserialize<'de> for PrincipleId
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PrincipleId
impl Display for PrincipleId
Source§impl FromStr for PrincipleId
impl FromStr for PrincipleId
Source§impl Hash for PrincipleId
impl Hash for PrincipleId
Source§impl JsonSchema for PrincipleId
impl JsonSchema for PrincipleId
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for PrincipleId
impl Ord for PrincipleId
Source§fn cmp(&self, other: &PrincipleId) -> Ordering
fn cmp(&self, other: &PrincipleId) -> Ordering
1.21.0 (const: unstable) · 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 PrincipleId
impl PartialEq for PrincipleId
Source§fn eq(&self, other: &PrincipleId) -> bool
fn eq(&self, other: &PrincipleId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PrincipleId
impl PartialOrd for PrincipleId
Source§impl Serialize for PrincipleId
impl Serialize for PrincipleId
impl Copy for PrincipleId
impl Eq for PrincipleId
impl StructuralPartialEq for PrincipleId
Auto Trait Implementations§
impl Freeze for PrincipleId
impl RefUnwindSafe for PrincipleId
impl Send for PrincipleId
impl Sync for PrincipleId
impl Unpin for PrincipleId
impl UnsafeUnpin for PrincipleId
impl UnwindSafe for PrincipleId
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