pub struct JoinId(/* private fields */);Expand description
A Sew-minted join id: 32 lowercase hex characters (16 random bytes).
Implementations§
Source§impl JoinIdHex
impl JoinIdHex
Sourcepub fn from_bytes(bytes: [u8; 16]) -> JoinIdHex
pub fn from_bytes(bytes: [u8; 16]) -> JoinIdHex
The hex form of 16 bytes.
Sourcepub fn lk_identity(&self) -> LkIdentity
pub fn lk_identity(&self) -> LkIdentity
The engine identity of this join (p_ + base32 of the bytes).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JoinIdHex
impl<'de> Deserialize<'de> for JoinIdHex
Source§fn deserialize<D>(d: D) -> Result<JoinIdHex, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<JoinIdHex, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JoinIdHex
Source§impl JsonSchema for JoinIdHex
impl JsonSchema for JoinIdHex
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl Ord for JoinIdHex
impl Ord for JoinIdHex
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for JoinIdHex
impl PartialOrd for JoinIdHex
Source§impl Serialize for JoinIdHex
impl Serialize for JoinIdHex
Source§fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for JoinIdHex
Auto Trait Implementations§
impl Forget for JoinIdHex
impl Freeze for JoinIdHex
impl Move for JoinIdHex
impl RefUnwindSafe for JoinIdHex
impl Send for JoinIdHex
impl Sync for JoinIdHex
impl Unpin for JoinIdHex
impl UnsafeUnpin for JoinIdHex
impl UnwindSafe for JoinIdHex
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more