pub struct SafeCode(/* private fields */);Expand description
Stable lowercase machine-readable code shared by configuration and durable protocol values.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SafeCode
impl<'de> Deserialize<'de> for SafeCode
Source§fn deserialize<D>(
deserializer: D,
) -> Result<SafeCode, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SafeCode, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SafeCode
Source§impl JsonSchema for SafeCode
impl JsonSchema for SafeCode
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(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl Ord for SafeCode
impl Ord for SafeCode
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 PartialOrd for SafeCode
impl PartialOrd for SafeCode
Source§impl Serialize for SafeCode
impl Serialize for SafeCode
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: 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 SafeCode
Auto Trait Implementations§
impl Freeze for SafeCode
impl RefUnwindSafe for SafeCode
impl Send for SafeCode
impl Sync for SafeCode
impl Unpin for SafeCode
impl UnsafeUnpin for SafeCode
impl UnwindSafe for SafeCode
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