Skip to content

Commit

Permalink
feat: Implement Envelope::from_path and Envelope::from_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Jun 17, 2022
1 parent 4b04b44 commit 1250d49
Show file tree
Hide file tree
Showing 2 changed files with 430 additions and 6 deletions.
6 changes: 4 additions & 2 deletions sentry-types/src/protocol/attachment.rs
@@ -1,7 +1,9 @@
use std::fmt;

use serde::Deserialize;

/// The different types an attachment can have.
#[derive(Debug, Copy, Clone, PartialEq)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Deserialize)]
pub enum AttachmentType {
/// (default) A standard attachment without special meaning.
Attachment,
Expand Down Expand Up @@ -37,7 +39,7 @@ impl AttachmentType {
}
}

#[derive(Clone, PartialEq, Default)]
#[derive(Clone, PartialEq, Deserialize, Default)]
/// Represents an attachment item.
pub struct Attachment {
/// The actual attachment data.
Expand Down

0 comments on commit 1250d49

Please sign in to comment.