pub struct Workflow {Show 16 fields
pub classification: ExpandingClassification,
pub creation_date: DateTime<Utc>,
pub creator: String,
pub edited_by: String,
pub enabled: bool,
pub first_seen: Option<DateTime<Utc>>,
pub hit_count: i32,
pub labels: Vec<String>,
pub last_edit: DateTime<Utc>,
pub last_seen: Option<DateTime<Utc>>,
pub name: String,
pub origin: Option<String>,
pub priority: Option<Priorities>,
pub query: String,
pub status: Option<Statuses>,
pub workflow_id: Option<Uuid>,
}
Expand description
Model of Workflow
Fields§
§classification: ExpandingClassification
Classification of the workflow
creation_date: DateTime<Utc>
Creation date of the workflow
creator: String
UID of the creator of the workflow
edited_by: String
UID of the last user to edit the workflow
enabled: bool
Is this workflow enabled?
first_seen: Option<DateTime<Utc>>
Date of first hit on workflow
hit_count: i32
Number of times there was a workflow hit
labels: Vec<String>
Labels applied by the workflow
last_edit: DateTime<Utc>
Date of last edit on workflow
last_seen: Option<DateTime<Utc>>
Date of last hit on workflow
name: String
Name of the workflow
origin: Option<String>
Which did this originate from?
priority: Option<Priorities>
Priority applied by the workflow
query: String
Query that the workflow runs
status: Option<Statuses>
Status applied by the workflow
workflow_id: Option<Uuid>
ID of the workflow
Trait Implementations§
Source§impl Described<ElasticMeta> for Workflow
impl Described<ElasticMeta> for Workflow
Source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Get self description of this type
Source§impl<'de> Deserialize<'de> for Workflow
impl<'de> Deserialize<'de> for Workflow
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 Workflow
impl RefUnwindSafe for Workflow
impl Send for Workflow
impl Sync for Workflow
impl Unpin for Workflow
impl UnwindSafe for Workflow
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