[][src]Struct sentry_types::protocol::v7::Attachment

pub struct Attachment {
    pub buffer: Vec<u8>,
    pub filename: String,
    pub ty: Option<AttachmentType>,
}

Represents an attachment item.

Fields

buffer: Vec<u8>

The actual attachment data.

filename: String

The filename of the attachment.

ty: Option<AttachmentType>

The special type of this attachment.

Implementations

impl Attachment[src]

pub fn to_writer<W>(&self, writer: &mut W) -> Result<()> where
    W: Write
[src]

Writes the attachment and its headers to the provided Writer.

Trait Implementations

impl Clone for Attachment[src]

impl Debug for Attachment[src]

impl PartialEq<Attachment> for Attachment[src]

impl StructuralPartialEq for Attachment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.