pub struct FileScore {
pub psid: Option<Sid>,
pub expiry_ts: DateTime<Utc>,
pub score: i32,
pub errors: i32,
pub sid: Sid,
pub time: f32,
}Expand description
Model of Scoring related to a File
Fields§
§psid: Option<Sid>Parent submission ID of the associated submission
expiry_ts: DateTime<Utc>Expiry timestamp, used for garbage collection
score: i32Maximum score for the associated submission
errors: i32Number of errors that occurred during the previous analysis
sid: SidID of the associated submission
time: f32Epoch time at which the FileScore entry was created
Trait Implementations§
Source§impl Described<ElasticMeta> for FileScore
impl Described<ElasticMeta> for FileScore
Source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Get self description of this type
Source§impl<'de> Deserialize<'de> for FileScore
impl<'de> Deserialize<'de> for FileScore
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
Auto Trait Implementations§
impl Freeze for FileScore
impl RefUnwindSafe for FileScore
impl Send for FileScore
impl Sync for FileScore
impl Unpin for FileScore
impl UnwindSafe for FileScore
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