pub struct Global {
pub name: String,
pub kind: Kind,
pub value: String,
}Expand description
Global constant definitions, for use in [ordinary_template::Template]s.
Fields§
§name: StringName of the global constant.
kind: KindType definition for the global variable.
value: StringValue of the global constant (validated by against the kind
at build time).
Fixed to String type for now.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Global
impl<'de> Deserialize<'de> for Global
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Global
impl RefUnwindSafe for Global
impl Send for Global
impl Sync for Global
impl Unpin for Global
impl UnwindSafe for Global
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