pub struct AttachmentMetadata {
pub id: Option<i64>,
pub param_self: Option<String>,
pub filename: Option<String>,
pub author: Option<Box<User>>,
pub created: Option<String>,
pub size: Option<i64>,
pub mime_type: Option<String>,
pub properties: Option<HashMap<String, Value>>,
pub content: Option<String>,
pub thumbnail: Option<String>,
}
Expand description
AttachmentMetadata : Metadata for an issue attachment.
Fields§
§id: Option<i64>
The ID of the attachment.
param_self: Option<String>
The URL of the attachment metadata details.
filename: Option<String>
The name of the attachment file.
Details of the user who attached the file.
created: Option<String>
The datetime the attachment was created.
size: Option<i64>
The size of the attachment.
mime_type: Option<String>
The MIME type of the attachment.
properties: Option<HashMap<String, Value>>
Additional properties of the attachment.
content: Option<String>
The URL of the attachment.
thumbnail: Option<String>
The URL of a thumbnail representing the attachment.
Implementations§
Source§impl AttachmentMetadata
impl AttachmentMetadata
Sourcepub fn new() -> AttachmentMetadata
pub fn new() -> AttachmentMetadata
Metadata for an issue attachment.
Trait Implementations§
Source§impl Clone for AttachmentMetadata
impl Clone for AttachmentMetadata
Source§fn clone(&self) -> AttachmentMetadata
fn clone(&self) -> AttachmentMetadata
Returns a duplicate 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 AttachmentMetadata
impl Debug for AttachmentMetadata
Source§impl Default for AttachmentMetadata
impl Default for AttachmentMetadata
Source§fn default() -> AttachmentMetadata
fn default() -> AttachmentMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttachmentMetadata
impl<'de> Deserialize<'de> for AttachmentMetadata
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 PartialEq for AttachmentMetadata
impl PartialEq for AttachmentMetadata
Source§impl Serialize for AttachmentMetadata
impl Serialize for AttachmentMetadata
impl StructuralPartialEq for AttachmentMetadata
Auto Trait Implementations§
impl Freeze for AttachmentMetadata
impl RefUnwindSafe for AttachmentMetadata
impl Send for AttachmentMetadata
impl Sync for AttachmentMetadata
impl Unpin for AttachmentMetadata
impl UnwindSafe for AttachmentMetadata
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