pub enum CaptureFrom {
Stdout(String),
Json(String),
Regex(String),
Line(u32),
Parts(BTreeMap<String, CaptureFrom>),
}Expand description
Where a captured value is in the command’s standard output.
Variants§
Stdout(String)
"all": the whole output, trimmed.
Json(String)
A field of JSON output: $.AccessKey.SecretAccessKey, $.items[0].token.
Regex(String)
A pattern with one capture group; its first match.
Line(u32)
One line, counted from 1, trimmed.
Parts(BTreeMap<String, CaptureFrom>)
A new card, made whole from several values of one output: number, exp (one text, “03/30” or
“2030-03”), exp_month, exp_year, cvc, name, zip, each as one of the forms above (not a parts
again). number is required. Only for as with kind: "card" and no id.
Trait Implementations§
Source§impl Clone for CaptureFrom
impl Clone for CaptureFrom
Source§fn clone(&self) -> CaptureFrom
fn clone(&self) -> CaptureFrom
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 CaptureFrom
impl Debug for CaptureFrom
Source§impl<'de> Deserialize<'de> for CaptureFrom
impl<'de> Deserialize<'de> for CaptureFrom
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 CaptureFrom
impl PartialEq for CaptureFrom
Source§impl Serialize for CaptureFrom
impl Serialize for CaptureFrom
impl StructuralPartialEq for CaptureFrom
Auto Trait Implementations§
impl Freeze for CaptureFrom
impl RefUnwindSafe for CaptureFrom
impl Send for CaptureFrom
impl Sync for CaptureFrom
impl Unpin for CaptureFrom
impl UnsafeUnpin for CaptureFrom
impl UnwindSafe for CaptureFrom
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