#[non_exhaustive]pub enum ValueSourceDef {
Literal(Value),
Expression(LanguageExpressionDef),
}Expand description
A declarative value source for set_header / set_body.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Literal(Value)
Expression(LanguageExpressionDef)
Trait Implementations§
Source§impl Clone for ValueSourceDef
impl Clone for ValueSourceDef
Source§fn clone(&self) -> ValueSourceDef
fn clone(&self) -> ValueSourceDef
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 ValueSourceDef
impl Debug for ValueSourceDef
Source§impl PartialEq for ValueSourceDef
impl PartialEq for ValueSourceDef
impl StructuralPartialEq for ValueSourceDef
Auto Trait Implementations§
impl Freeze for ValueSourceDef
impl RefUnwindSafe for ValueSourceDef
impl Send for ValueSourceDef
impl Sync for ValueSourceDef
impl Unpin for ValueSourceDef
impl UnsafeUnpin for ValueSourceDef
impl UnwindSafe for ValueSourceDef
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