pub struct TaskResult(pub Map<String, Value>);Expand description
A module result, in the free-form shape Ansible modules return.
Tuple Fields§
§0: Map<String, Value>Implementations§
Source§impl TaskResult
impl TaskResult
pub fn flag(&self, key: &str) -> bool
pub fn changed(&self) -> bool
pub fn skipped(&self) -> bool
Sourcepub fn failed(&self) -> bool
pub fn failed(&self) -> bool
Ansible’s rule: a present failed (true or false) is the truth; rc only decides when
failed is absent. failed_when: false can rescue a non-zero rc.
pub fn failed_with(msg: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for TaskResult
impl Clone for TaskResult
Source§fn clone(&self) -> TaskResult
fn clone(&self) -> TaskResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskResult
impl Debug for TaskResult
Source§impl Default for TaskResult
impl Default for TaskResult
Source§fn default() -> TaskResult
fn default() -> TaskResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskResult
impl<'de> Deserialize<'de> for TaskResult
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 PartialEq for TaskResult
impl PartialEq for TaskResult
Source§impl Serialize for TaskResult
impl Serialize for TaskResult
impl StructuralPartialEq for TaskResult
Auto Trait Implementations§
impl Freeze for TaskResult
impl RefUnwindSafe for TaskResult
impl Send for TaskResult
impl Sync for TaskResult
impl Unpin for TaskResult
impl UnsafeUnpin for TaskResult
impl UnwindSafe for TaskResult
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