Struct secret_toolkit_serialization::Base64Of
source · pub struct Base64Of<S: Serde, T> {
pub inner: T,
/* private fields */
}
Expand description
A wrapper that automatically deserializes base64 strings to T
using
one of the Serde
types.
Use it as a field of your Handle messages (input and output), for
example in the msg
field of the Receive
interface, to remove the
boilerplate of serializing or deserializing the Binary
to the relevant
type T
.
Fields§
§inner: T
Trait Implementations§
source§impl<'de, S: Serde, T: for<'des> Deserialize<'des>> Deserialize<'de> for Base64Of<S, T>
impl<'de, S: Serde, T: for<'des> Deserialize<'des>> Deserialize<'de> for Base64Of<S, T>
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<S: Serde, T: JsonSchema> JsonSchema for Base64Of<S, T>
impl<S: Serde, T: JsonSchema> JsonSchema for Base64Of<S, T>
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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<S: Serde, S2: Serde, T: PartialEq> PartialEq<Base64Of<S2, T>> for Base64Of<S, T>
impl<S: Serde, S2: Serde, T: PartialEq> PartialEq<Base64Of<S2, T>> for Base64Of<S, T>
source§impl<S: Serde, S2: Serde, T: PartialOrd> PartialOrd<Base64Of<S2, T>> for Base64Of<S, T>
impl<S: Serde, S2: Serde, T: PartialOrd> PartialOrd<Base64Of<S2, T>> for Base64Of<S, T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<S: Serde, T: PartialOrd> PartialOrd<T> for Base64Of<S, T>
impl<S: Serde, T: PartialOrd> PartialOrd<T> for Base64Of<S, T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more