pub struct AutomationPlan { /* private fields */ }Expand description
A JSON plan of pinto commands to execute sequentially.
Implementations§
Source§impl AutomationPlan
impl AutomationPlan
Sourcepub fn parse(input: &str) -> Result<Self, AutomationPlanError>
pub fn parse(input: &str) -> Result<Self, AutomationPlanError>
Validate and read the JSON object {\"commands\":[[\"add\", \"...\"], ...]}.
Reject unknown fields, so don’t accept or store connection information like API keys. Detailed JSON parsing errors may include input content and are not returned to the caller.
Trait Implementations§
Source§impl Clone for AutomationPlan
impl Clone for AutomationPlan
Source§fn clone(&self) -> AutomationPlan
fn clone(&self) -> AutomationPlan
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 AutomationPlan
impl Debug for AutomationPlan
impl Eq for AutomationPlan
Source§impl PartialEq for AutomationPlan
impl PartialEq for AutomationPlan
impl StructuralPartialEq for AutomationPlan
Auto Trait Implementations§
impl Freeze for AutomationPlan
impl RefUnwindSafe for AutomationPlan
impl Send for AutomationPlan
impl Sync for AutomationPlan
impl Unpin for AutomationPlan
impl UnsafeUnpin for AutomationPlan
impl UnwindSafe for AutomationPlan
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