pub enum MissingVariablePolicy {
EmptyWithWarning,
PreserveWithWarning,
Error,
}Expand description
Behavior for an unset direct $VAR or ${VAR} substitution.
Variants§
EmptyWithWarning
Match Compose’s documented behavior: warn and substitute an empty string.
PreserveWithWarning
Warn and retain the original expression in the recovered value.
Error
Emit an error and retain the original expression in the recovered value.
Trait Implementations§
Source§impl Clone for MissingVariablePolicy
impl Clone for MissingVariablePolicy
Source§fn clone(&self) -> MissingVariablePolicy
fn clone(&self) -> MissingVariablePolicy
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 moreimpl Copy for MissingVariablePolicy
Source§impl Debug for MissingVariablePolicy
impl Debug for MissingVariablePolicy
impl Eq for MissingVariablePolicy
Source§impl Hash for MissingVariablePolicy
impl Hash for MissingVariablePolicy
Source§impl PartialEq for MissingVariablePolicy
impl PartialEq for MissingVariablePolicy
impl StructuralPartialEq for MissingVariablePolicy
Auto Trait Implementations§
impl Freeze for MissingVariablePolicy
impl RefUnwindSafe for MissingVariablePolicy
impl Send for MissingVariablePolicy
impl Sync for MissingVariablePolicy
impl Unpin for MissingVariablePolicy
impl UnsafeUnpin for MissingVariablePolicy
impl UnwindSafe for MissingVariablePolicy
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