pub struct SizedUnit {
pub id: String,
pub title: String,
pub action: UnitAction,
pub priority: u8,
pub dependencies: Vec<String>,
pub parent: Option<String>,
pub produces: Vec<String>,
pub requires: Vec<String>,
pub paths: Vec<String>,
pub model: Option<String>,
}Expand description
A unit ready for dispatch.
Fields§
§id: String§title: String§action: UnitAction§priority: u8§dependencies: Vec<String>§parent: Option<String>§produces: Vec<String>§requires: Vec<String>§paths: Vec<String>§model: Option<String>Per-unit model override from frontmatter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizedUnit
impl RefUnwindSafe for SizedUnit
impl Send for SizedUnit
impl Sync for SizedUnit
impl Unpin for SizedUnit
impl UnsafeUnpin for SizedUnit
impl UnwindSafe for SizedUnit
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