Enum poem_openapi::payload::AttachmentType
source · [−]pub enum AttachmentType {
Inline,
Attachment,
}
Expand description
Attachment type
Variants
Inline
Indicate it can be displayed inside the Web page, or as the Web page
Attachment
Indicate it should be downloaded; most browsers presenting a ‘Save as’ dialog
Trait Implementations
sourceimpl Clone for AttachmentType
impl Clone for AttachmentType
sourcefn clone(&self) -> AttachmentType
fn clone(&self) -> AttachmentType
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AttachmentType
impl Debug for AttachmentType
sourceimpl PartialEq<AttachmentType> for AttachmentType
impl PartialEq<AttachmentType> for AttachmentType
sourcefn eq(&self, other: &AttachmentType) -> bool
fn eq(&self, other: &AttachmentType) -> bool
impl Copy for AttachmentType
impl Eq for AttachmentType
impl StructuralEq for AttachmentType
impl StructuralPartialEq for AttachmentType
Auto Trait Implementations
impl RefUnwindSafe for AttachmentType
impl Send for AttachmentType
impl Sync for AttachmentType
impl Unpin for AttachmentType
impl UnwindSafe for AttachmentType
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.