#[non_exhaustive]pub struct IssueAttributes {Show 14 fields
pub error_message: Option<String>,
pub error_type: Option<String>,
pub file_path: Option<String>,
pub first_seen: Option<i64>,
pub first_seen_version: Option<String>,
pub function_name: Option<String>,
pub is_crash: Option<bool>,
pub languages: Option<Vec<IssueLanguage>>,
pub last_seen: Option<i64>,
pub last_seen_version: Option<String>,
pub platform: Option<IssuePlatform>,
pub service: Option<String>,
pub state: Option<IssueState>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Object containing the information of an issue.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.error_message: Option<String>
Error message associated with the issue.
error_type: Option<String>
Type of the error that matches the issue.
file_path: Option<String>
Path of the file where the issue occurred.
first_seen: Option<i64>
Timestamp of the first seen error in milliseconds since the Unix epoch.
first_seen_version: Option<String>
The application version (for example, git commit hash) where the issue was first observed.
function_name: Option<String>
Name of the function where the issue occurred.
is_crash: Option<bool>
Error is a crash.
languages: Option<Vec<IssueLanguage>>
Array of programming languages associated with the issue.
last_seen: Option<i64>
Timestamp of the last seen error in milliseconds since the Unix epoch.
last_seen_version: Option<String>
The application version (for example, git commit hash) where the issue was last observed.
platform: Option<IssuePlatform>
Platform associated with the issue.
service: Option<String>
Service name.
state: Option<IssueState>
State of the issue
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl IssueAttributes
impl IssueAttributes
pub fn new() -> IssueAttributes
pub fn error_message(self, value: String) -> Self
pub fn error_type(self, value: String) -> Self
pub fn file_path(self, value: String) -> Self
pub fn first_seen(self, value: i64) -> Self
pub fn first_seen_version(self, value: String) -> Self
pub fn function_name(self, value: String) -> Self
pub fn is_crash(self, value: bool) -> Self
pub fn languages(self, value: Vec<IssueLanguage>) -> Self
pub fn last_seen(self, value: i64) -> Self
pub fn last_seen_version(self, value: String) -> Self
pub fn platform(self, value: IssuePlatform) -> Self
pub fn service(self, value: String) -> Self
pub fn state(self, value: IssueState) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for IssueAttributes
impl Clone for IssueAttributes
Source§fn clone(&self) -> IssueAttributes
fn clone(&self) -> IssueAttributes
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 IssueAttributes
impl Debug for IssueAttributes
Source§impl Default for IssueAttributes
impl Default for IssueAttributes
Source§impl<'de> Deserialize<'de> for IssueAttributes
impl<'de> Deserialize<'de> for IssueAttributes
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 IssueAttributes
impl PartialEq for IssueAttributes
Source§impl Serialize for IssueAttributes
impl Serialize for IssueAttributes
impl StructuralPartialEq for IssueAttributes
Auto Trait Implementations§
impl Freeze for IssueAttributes
impl RefUnwindSafe for IssueAttributes
impl Send for IssueAttributes
impl Sync for IssueAttributes
impl Unpin for IssueAttributes
impl UnwindSafe for IssueAttributes
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