pub struct Variable {
pub name: String,
pub optional: bool,
pub secret: bool,
pub host: bool,
pub ty: Option<String>,
pub about: Option<String>,
pub default: Option<Value>,
}Expand description
One variable a file declares under $vars (SPEC 4.5).
Fields§
§name: StringIts name.
optional: booloptional: true
secret: boolsecret: true: kept out of debug output, problems and traces.
host: boolhost: true: the application sets it itself.
ty: Option<String>type, as written.
about: Option<String>about
default: Option<Value>default
Implementations§
Trait Implementations§
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl !RefUnwindSafe for Variable
impl !UnwindSafe for Variable
impl Forget for Variable
impl Freeze for Variablewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<[Value]> is !null: Freeze,
PhantomData<ArcInner<[Value]>>: Freeze,
*const ArcInner<IndexMap<Arc<str>, Value>> is !null: Freeze,
PhantomData<ArcInner<IndexMap<Arc<str>, Value>>>: Freeze,
NonZero<i32>: Freeze,
*const ArcInner<Range> is !null: Freeze,
PhantomData<ArcInner<Range>>: Freeze,
*const ArcInner<Function> is !null: Freeze,
PhantomData<ArcInner<Function>>: Freeze,
*const ArcInner<dyn HostValue> is !null: Freeze,
PhantomData<ArcInner<dyn HostValue>>: Freeze,
impl Move for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variablewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[Value]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Value]>>: UnsafeUnpin,
*const ArcInner<IndexMap<Arc<str>, Value>> is !null: UnsafeUnpin,
PhantomData<ArcInner<IndexMap<Arc<str>, Value>>>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
*const ArcInner<Range> is !null: UnsafeUnpin,
PhantomData<ArcInner<Range>>: UnsafeUnpin,
*const ArcInner<Function> is !null: UnsafeUnpin,
PhantomData<ArcInner<Function>>: UnsafeUnpin,
*const ArcInner<dyn HostValue> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn HostValue>>: UnsafeUnpin,
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