Struct kittycad_modeling_cmds::base64::Base64Data
source · pub struct Base64Data(pub Vec<u8>);
Expand description
A container for binary that should be base64 encoded in serialisation. In reverse when deserializing, will decode from many different types of base64 possible.
Tuple Fields§
§0: Vec<u8>
Implementations§
Trait Implementations§
source§impl AsRef<[u8]> for Base64Data
impl AsRef<[u8]> for Base64Data
source§impl Clone for Base64Data
impl Clone for Base64Data
source§fn clone(&self) -> Base64Data
fn clone(&self) -> Base64Data
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 Base64Data
impl Debug for Base64Data
source§impl<'de> Deserialize<'de> for Base64Data
impl<'de> Deserialize<'de> for Base64Data
source§fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Base64Data
impl Display for Base64Data
source§impl From<Base64Data> for Primitive
impl From<Base64Data> for Primitive
source§fn from(value: Base64Data) -> Self
fn from(value: Base64Data) -> Self
Converts to this type from the input type.
source§impl JsonSchema for Base64Data
impl JsonSchema for Base64Data
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 PartialEq for Base64Data
impl PartialEq for Base64Data
source§fn eq(&self, other: &Base64Data) -> bool
fn eq(&self, other: &Base64Data) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Base64Data
impl Serialize for Base64Data
source§impl TryFrom<&str> for Base64Data
impl TryFrom<&str> for Base64Data
source§impl TryFrom<Primitive> for Base64Data
impl TryFrom<Primitive> for Base64Data
source§impl Value for Base64Data
impl Value for Base64Data
source§fn into_parts(self) -> Vec<Primitive>
fn into_parts(self) -> Vec<Primitive>
Store the value in memory.
source§fn from_parts<I>(values: &mut I) -> Result<(Self, usize), MemoryError>
fn from_parts<I>(values: &mut I) -> Result<(Self, usize), MemoryError>
Read the value from memory.
impl Eq for Base64Data
impl StructuralPartialEq for Base64Data
Auto Trait Implementations§
impl Freeze for Base64Data
impl RefUnwindSafe for Base64Data
impl Send for Base64Data
impl Sync for Base64Data
impl Unpin for Base64Data
impl UnwindSafe for Base64Data
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read moresource§impl<T> ToHex for T
impl<T> ToHex for T
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)