pub enum AttachmentInput {
Attachment(Attachment),
String(String),
}Expand description
AttachmentInput
JSON schema
{
"oneOf": [
{
"$ref": "#/components/schemas/Attachment"
},
{
"type": "string"
}
]
}Variants§
Attachment(Attachment)
String(String)
Trait Implementations§
Source§impl Clone for AttachmentInput
impl Clone for AttachmentInput
Source§fn clone(&self) -> AttachmentInput
fn clone(&self) -> AttachmentInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttachmentInput
impl Debug for AttachmentInput
Source§impl<'de> Deserialize<'de> for AttachmentInput
impl<'de> Deserialize<'de> for AttachmentInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Attachment> for AttachmentInput
impl From<Attachment> for AttachmentInput
Source§fn from(value: Attachment) -> Self
fn from(value: Attachment) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AttachmentInput
impl RefUnwindSafe for AttachmentInput
impl Send for AttachmentInput
impl Sync for AttachmentInput
impl Unpin for AttachmentInput
impl UnsafeUnpin for AttachmentInput
impl UnwindSafe for AttachmentInput
Blanket Implementations§
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