pub struct TaskFlow {
pub name: Option<String>,
pub with_sudo: Option<bool>,
pub step_flows: Vec<StepFlow>,
pub task_status: TaskStatus,
}Expand description
A TaskFlow withholds all step flows, a flow being being the combination of :
- an expected state
- changes required to have the host match this expected state
- results of actually trying to enforce these changes
Fields§
§name: Option<String>§with_sudo: Option<bool>§step_flows: Vec<StepFlow>§task_status: TaskStatusImplementations§
Source§impl TaskFlow
impl TaskFlow
pub fn new() -> TaskFlow
pub fn from(task_block: TaskBlock) -> TaskFlow
pub fn dry_run( &mut self, hosthandler: &mut HostHandler, tera_context: &mut Context, ) -> Result<(), Error>
pub fn apply( &mut self, hosthandler: &mut HostHandler, tera_context: &mut Context, ) -> Result<(), Error>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskFlow
impl<'de> Deserialize<'de> for TaskFlow
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 TaskFlow
impl RefUnwindSafe for TaskFlow
impl Send for TaskFlow
impl Sync for TaskFlow
impl Unpin for TaskFlow
impl UnsafeUnpin for TaskFlow
impl UnwindSafe for TaskFlow
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