Struct poem_openapi::types::Base64
source · [−]pub struct Base64<T>(pub T);
Expand description
Represents a binary data encoded with base64.
Tuple Fields
0: T
Trait Implementations
sourceimpl ParseFromJSON for Base64<Bytes>
impl ParseFromJSON for Base64<Bytes>
sourcefn parse_from_json(value: Option<Value>) -> ParseResult<Self>
fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
Parse from
serde_json::Value
.sourcefn parse_from_json_string(s: &str) -> ParseResult<Self>
fn parse_from_json_string(s: &str) -> ParseResult<Self>
Parse from JSON string.
sourceimpl ParseFromJSON for Base64<Vec<u8>>
impl ParseFromJSON for Base64<Vec<u8>>
sourcefn parse_from_json(value: Option<Value>) -> ParseResult<Self>
fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
Parse from
serde_json::Value
.sourcefn parse_from_json_string(s: &str) -> ParseResult<Self>
fn parse_from_json_string(s: &str) -> ParseResult<Self>
Parse from JSON string.
sourceimpl ParseFromParameter for Base64<Bytes>
impl ParseFromParameter for Base64<Bytes>
sourcefn parse_from_parameter(value: &str) -> ParseResult<Self>
fn parse_from_parameter(value: &str) -> ParseResult<Self>
Parse from parameter.
sourcefn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>(
iter: I
) -> ParseResult<Self>
fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>(
iter: I
) -> ParseResult<Self>
Parse from multiple parameters.
sourceimpl ParseFromParameter for Base64<Vec<u8>>
impl ParseFromParameter for Base64<Vec<u8>>
sourcefn parse_from_parameter(value: &str) -> ParseResult<Self>
fn parse_from_parameter(value: &str) -> ParseResult<Self>
Parse from parameter.
sourcefn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>(
iter: I
) -> ParseResult<Self>
fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>(
iter: I
) -> ParseResult<Self>
Parse from multiple parameters.
sourceimpl<T: PartialEq> PartialEq<Base64<T>> for Base64<T>
impl<T: PartialEq> PartialEq<Base64<T>> for Base64<T>
sourceimpl<T: AsRef<[u8]> + Send + Sync> Type for Base64<T>
impl<T: AsRef<[u8]> + Send + Sync> Type for Base64<T>
sourceconst IS_REQUIRED: bool = true
const IS_REQUIRED: bool = true
If it is
true
, it means that this type is required.type RawValueType = Base64<T>
type RawValueType = Base64<T>
The raw type used for validator. Read more
type RawElementValueType = Base64<T>
type RawElementValueType = Base64<T>
The raw element type used for validator.
sourcefn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Get schema reference of this type.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn raw_element_iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn raw_element_iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Returns an iterator for traversing the elements.
impl<T: Eq> Eq for Base64<T>
impl<T> StructuralEq for Base64<T>
impl<T> StructuralPartialEq for Base64<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Base64<T>where
T: RefUnwindSafe,
impl<T> Send for Base64<T>where
T: Send,
impl<T> Sync for Base64<T>where
T: Sync,
impl<T> Unpin for Base64<T>where
T: Unpin,
impl<T> UnwindSafe for Base64<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.