pub struct BugAttachment(/* private fields */);Expand description
A file attachment to an IBug.
Launchpadlib example of accessing content of an attachment:
Launchpadlib example of accessing metadata about an attachment:
For information about the file-like object returned by attachment.data.open() see lazr.restfulclient’s documentation of the HostedFile object.
Details about the message associated with an attachment can be found on the “message” attribute:
Implementations§
Source§impl BugAttachment
impl BugAttachment
pub fn get<'a>( &self, client: &'a dyn Client, ) -> Result<BugAttachmentFull, Error>
pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>
pub fn put<'a>( &self, client: &'a dyn Client, representation: &BugAttachmentFull, ) -> Result<(), Error>
pub fn patch<'a>( &self, client: &'a dyn Client, representation: &BugAttachmentDiff, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BugAttachment
impl RefUnwindSafe for BugAttachment
impl Send for BugAttachment
impl Sync for BugAttachment
impl Unpin for BugAttachment
impl UnwindSafe for BugAttachment
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