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§
source§impl Clone for AttachmentType
impl Clone for AttachmentType
source§fn clone(&self) -> AttachmentType
fn clone(&self) -> AttachmentType
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 AttachmentType
impl Debug for AttachmentType
source§impl PartialEq<AttachmentType> for AttachmentType
impl PartialEq<AttachmentType> for AttachmentType
source§fn eq(&self, other: &AttachmentType) -> bool
fn eq(&self, other: &AttachmentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.