Struct poem_openapi::types::Binary
source · [−]pub struct Binary<T>(pub T);
Expand description
Represents a binary data.
Tuple Fields
0: T
Trait Implementations
sourceimpl ParseFromMultipartField for Binary<Vec<u8>>
impl ParseFromMultipartField for Binary<Vec<u8>>
sourcefn parse_from_multipart<'async_trait>(
field: Option<Field>
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
fn parse_from_multipart<'async_trait>(
field: Option<Field>
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
Parse from multipart field.
sourcefn parse_from_repeated_field<'async_trait>(
self,
_field: PoemField
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: Send + 'async_trait,
fn parse_from_repeated_field<'async_trait>(
self,
_field: PoemField
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: Send + 'async_trait,
Parse from repeated multipart field.
sourceimpl ParseFromMultipartField for Binary<Bytes>
impl ParseFromMultipartField for Binary<Bytes>
sourcefn parse_from_multipart<'async_trait>(
field: Option<Field>
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
fn parse_from_multipart<'async_trait>(
field: Option<Field>
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
Parse from multipart field.
sourcefn parse_from_repeated_field<'async_trait>(
self,
_field: PoemField
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: Send + 'async_trait,
fn parse_from_repeated_field<'async_trait>(
self,
_field: PoemField
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: Send + 'async_trait,
Parse from repeated multipart field.
sourceimpl<T: AsRef<[u8]> + Send + Sync> Type for Binary<T>
impl<T: AsRef<[u8]> + Send + Sync> Type for Binary<T>
sourceconst IS_REQUIRED: bool
const IS_REQUIRED: bool
If it is true
, it means that this type is required.
type RawValueType = Self
type RawValueType = Self
The raw type used for validator. Read more
type RawElementValueType = Self
type RawElementValueType = Self
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 Binary<T>
impl<T> StructuralEq for Binary<T>
impl<T> StructuralPartialEq for Binary<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Binary<T> where
T: RefUnwindSafe,
impl<T> Send for Binary<T> where
T: Send,
impl<T> Sync for Binary<T> where
T: Sync,
impl<T> Unpin for Binary<T> where
T: Unpin,
impl<T> UnwindSafe for Binary<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
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.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more