pub struct RemoteIncident {
pub id: String,
pub service: String,
pub level: IncidentLevel,
pub title: String,
pub file: Option<String>,
pub line: Option<u32>,
pub first_seen: String,
pub last_seen: String,
pub count: u64,
}Expand description
One deduped incident from the error inbox.
No log excerpt. The local inbox carries the surrounding lines, and they are raw service output — the exact bytes the log capability redacts a credential out of before sending. Rather than run that redaction twice, the excerpt does not cross: a phone that wants the lines asks for the service’s logs, which is a capability of its own and already bounded.
file is the basename. A stack trace names somebody’s whole home
directory, and “which file” is the part that helps.
Fields§
§id: String§service: StringThe registered service it was seen in.
level: IncidentLevel§title: StringThe first line of the error, already cut to
super::limits::MAX_SUMMARY_BYTES.
file: Option<String>§line: Option<u32>§first_seen: String§last_seen: String§count: u64How many times this signature has been seen. The number that tells a loop from an incident.
Trait Implementations§
Source§impl Clone for RemoteIncident
impl Clone for RemoteIncident
Source§fn clone(&self) -> RemoteIncident
fn clone(&self) -> RemoteIncident
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RemoteIncident
impl Debug for RemoteIncident
Source§impl<'de> Deserialize<'de> for RemoteIncident
impl<'de> Deserialize<'de> for RemoteIncident
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
impl Eq for RemoteIncident
Source§impl PartialEq for RemoteIncident
impl PartialEq for RemoteIncident
Source§impl Serialize for RemoteIncident
impl Serialize for RemoteIncident
impl StructuralPartialEq for RemoteIncident
Auto Trait Implementations§
impl Freeze for RemoteIncident
impl RefUnwindSafe for RemoteIncident
impl Send for RemoteIncident
impl Sync for RemoteIncident
impl Unpin for RemoteIncident
impl UnsafeUnpin for RemoteIncident
impl UnwindSafe for RemoteIncident
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.