pub struct Result {
pub archive_ts: Option<DateTime<Utc>>,
pub classification: ExpandingClassification,
pub created: DateTime<Utc>,
pub expiry_ts: Option<DateTime<Utc>>,
pub response: ResponseBody,
pub result: ResultBody,
pub sha256: Sha256,
pub result_type: Option<String>,
pub size: Option<i32>,
pub drop_file: bool,
pub partial: bool,
pub from_archive: bool,
}
Expand description
Result Model
Fields§
§archive_ts: Option<DateTime<Utc>>
Timestamp indicating when the result was archived.
classification: ExpandingClassification
Aggregate classification for the result
created: DateTime<Utc>
Date at which the result object got created
expiry_ts: Option<DateTime<Utc>>
Expiry timestamp
response: ResponseBody
The body of the response from the service
result: ResultBody
The result body
sha256: Sha256
SHA256 of the file the result object relates to
result_type: Option<String>
What type information is given along with this result
size: Option<i32>
???
drop_file: bool
Use to not pass to other stages after this run
partial: bool
Invalidate the current result cache creation
from_archive: bool
Was loaded from the archive
Implementations§
Source§impl Result
impl Result
pub fn build_key(&self, task: Option<&Task>) -> Result<String, Error>
pub fn help_build_key( sha256: &Sha256, service_name: &str, service_version: &str, is_empty: bool, partial: bool, service_tool_version: Option<&str>, task: Option<&Task>, ) -> Result<String, Error>
pub fn scored_tag_dict(&self) -> Result<HashMap<String, TagEntry>, Error>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Described<ElasticMeta> for Result
impl Described<ElasticMeta> for Result
Source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Get self description of this type
Source§impl<'de> Deserialize<'de> for Result
impl<'de> Deserialize<'de> for Result
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<Result> for StandardUniform
impl Distribution<Result> for StandardUniform
Auto Trait Implementations§
impl Freeze for Result
impl RefUnwindSafe for Result
impl Send for Result
impl Sync for Result
impl Unpin for Result
impl UnwindSafe for Result
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,
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