pub struct Attachment {Show 13 fields
pub id: u64,
pub bug_id: u64,
pub file_name: String,
pub summary: String,
pub size: Byte,
pub creator: String,
pub content_type: String,
pub is_private: bool,
pub is_obsolete: bool,
pub is_patch: bool,
pub created: DateTime<Utc>,
pub updated: DateTime<Utc>,
pub flags: Vec<BugFlag>,
/* private fields */
}Expand description
A file attachment on a bug.
Fields§
§id: u64Unique attachment identifier.
bug_id: u64Bug identifier the attachment is related to.
file_name: StringFile name of the attachment.
summary: StringDescription of the attachment.
size: ByteSize of the attachment in bytes.
creator: StringLogin identifier of the attachment’s creator.
content_type: StringMIME type of the attachment.
is_private: boolAttachment is private.
is_obsolete: boolAttachment is obsolete.
is_patch: boolAttachment is a patch.
created: DateTime<Utc>Creation time of the attachment.
updated: DateTime<Utc>Last update time of the attachment.
flags: Vec<BugFlag>Flags of the attachment.
Implementations§
Source§impl Attachment
impl Attachment
Trait Implementations§
Source§impl AsRef<[u8]> for Attachment
impl AsRef<[u8]> for Attachment
Source§impl Debug for Attachment
impl Debug for Attachment
Source§impl<'de> Deserialize<'de> for Attachment
impl<'de> Deserialize<'de> for Attachment
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
impl Eq for Attachment
Source§impl Hash for Attachment
impl Hash for Attachment
Source§impl PartialEq for Attachment
impl PartialEq for Attachment
Source§fn eq(&self, other: &Attachment) -> bool
fn eq(&self, other: &Attachment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Attachment
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more