#[non_exhaustive]pub struct OptionValue<'o, 'a> {
pub value: &'o Value<'a>,
pub literal: bool,
}Expand description
A resolved option value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: &'o Value<'a>The value.
literal: boolWhether it was set directly by a literal (formatting.md, “Resolved
Values”: handlers may require literals, like select).
Trait Implementations§
Source§impl<'o, 'a> Clone for OptionValue<'o, 'a>
impl<'o, 'a> Clone for OptionValue<'o, 'a>
impl<'o, 'a> Copy for OptionValue<'o, 'a>
Auto Trait Implementations§
impl<'o, 'a> !RefUnwindSafe for OptionValue<'o, 'a>
impl<'o, 'a> !Send for OptionValue<'o, 'a>
impl<'o, 'a> !Sync for OptionValue<'o, 'a>
impl<'o, 'a> !UnwindSafe for OptionValue<'o, 'a>
impl<'o, 'a> Freeze for OptionValue<'o, 'a>
impl<'o, 'a> Unpin for OptionValue<'o, 'a>
impl<'o, 'a> UnsafeUnpin for OptionValue<'o, 'a>
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