pub struct DraftInput {
pub field: String,
pub description: Option<String>,
pub secret: bool,
pub required: bool,
pub alias: Option<String>,
pub value_dropped: bool,
}Expand description
A value the user provides: a secret to set under alias, or a
variable the draft reads from the environment.
Fields§
§field: Stringenv.NAME, headers.NAME, args[N] (1-based), url, command,
each also as os.<name>.<field> for an override, or
client.<id>.<key> for a native passthrough value.
description: Option<String>§secret: boolThe draft holds ${secret:<alias>} (or, for a passthrough value,
the value was left out).
required: bool§alias: Option<String>§value_dropped: boolThe file held a literal value here; it was replaced by the reference (or left out) and not kept.
Trait Implementations§
Source§impl Clone for DraftInput
impl Clone for DraftInput
Source§impl Debug for DraftInput
impl Debug for DraftInput
impl Eq for DraftInput
Source§impl PartialEq for DraftInput
impl PartialEq for DraftInput
impl StructuralPartialEq for DraftInput
Auto Trait Implementations§
impl Forget for DraftInput
impl Freeze for DraftInput
impl Move for DraftInput
impl RefUnwindSafe for DraftInput
impl Send for DraftInputwhere
RawVecInner: Send,
impl Sync for DraftInputwhere
RawVecInner: Sync,
impl Unpin for DraftInput
impl UnsafeUnpin for DraftInput
impl UnwindSafe for DraftInputwhere
RawVecInner: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.