pub struct BugAttachmentFull {
pub self_link: Option<Url>,
pub web_link: Option<Url>,
pub resource_type_link: Option<Url>,
pub http_etag: Option<String>,
pub bug_link: Url,
pub data_link: Url,
pub message_link: Url,
pub title: String,
pub type: AttachmentType,
pub url: Url,
}Expand description
Representation of the bug_attachment-full resource
Fields§
§self_link: Option<Url>The canonical link to this resource.
web_link: Option<Url>The canonical human-addressable web link to this resource.
resource_type_link: Option<Url>The link to the WADL description of this resource.
http_etag: Option<String>The value of the HTTP ETag for this resource.
bug_link: UrlThe bug the attachment belongs to.
data_link: UrlThe attachment content.
message_link: UrlThe message that was created when we added this attachment.
title: StringTitle
A short and descriptive description of the attachment
type: AttachmentTypeAttachment Type
The type of the attachment, for example Patch or Unspecified.
url: UrlAttachment URL
Implementations§
Source§impl BugAttachmentFull
impl BugAttachmentFull
Sourcepub fn self_(&self) -> Option<BugAttachment>
pub fn self_(&self) -> Option<BugAttachment>
The canonical link to this resource.
pub fn set_self_(&mut self, value: Option<BugAttachment>)
pub fn set_bug(&mut self, value: Bug)
Sourcepub fn data(&self) -> HostedFile
pub fn data(&self) -> HostedFile
The attachment content.
pub fn set_data(&mut self, value: HostedFile)
pub fn set_message(&mut self, value: Message)
Trait Implementations§
Source§impl Clone for BugAttachmentFull
impl Clone for BugAttachmentFull
Source§fn clone(&self) -> BugAttachmentFull
fn clone(&self) -> BugAttachmentFull
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 BugAttachmentFull
impl Debug for BugAttachmentFull
Source§impl<'de> Deserialize<'de> for BugAttachmentFull
impl<'de> Deserialize<'de> for BugAttachmentFull
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 BugAttachmentFull
impl PartialEq for BugAttachmentFull
Source§impl Serialize for BugAttachmentFull
impl Serialize for BugAttachmentFull
impl StructuralPartialEq for BugAttachmentFull
Auto Trait Implementations§
impl Freeze for BugAttachmentFull
impl RefUnwindSafe for BugAttachmentFull
impl Send for BugAttachmentFull
impl Sync for BugAttachmentFull
impl Unpin for BugAttachmentFull
impl UnwindSafe for BugAttachmentFull
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