pub struct Error {
pub archive_ts: Option<DateTime<Utc>>,
pub created: DateTime<Utc>,
pub expiry_ts: Option<DateTime<Utc>>,
pub response: Response,
pub sha256: Sha256,
pub error_type: ErrorTypes,
pub severity: ErrorSeverity,
}Expand description
Error Model used by Error Viewer
Fields§
§archive_ts: Option<DateTime<Utc>>Time at which the error was archived
created: DateTime<Utc>Error creation timestamp
expiry_ts: Option<DateTime<Utc>>Expiry timestamp
response: ResponseResponse from the service
sha256: Sha256SHA256 of file related to service error
error_type: ErrorTypesType of error
severity: ErrorSeverityThe severity of an error
Implementations§
Source§impl Error
impl Error
pub fn build_key( &self, service_tool_version: Option<&str>, task: Option<&Task>, ) -> Result<String, Error>
pub fn build_unique_key( &self, service_tool_version: Option<&str>, task: Option<&Task>, ) -> Result<String, Error>
pub fn from_submission(context: &Submission) -> NeedsService
pub fn from_task(context: &Task) -> NeedsMessage
pub fn from_result(context: &Result) -> NeedsMessage
Trait Implementations§
Source§impl Described<ElasticMeta> for Error
impl Described<ElasticMeta> for Error
Source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Get self description of this type
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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 Distribution<Error> for StandardUniform
Available on crate feature rand only.
impl Distribution<Error> for StandardUniform
Available on crate feature
rand only.Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more