pub struct Head {
pub format: u32,
pub locale: Option<String>,
pub options: Options,
}Expand description
What a bundle says about itself, apart from the installation it carries.
A head that has been read is in BUNDLE_FORMAT, since any other is
refused; the field is kept because a head is also what gets written.
Fields§
§format: u32§locale: Option<String>The language the options are written in: a plain string is in it, and a translated one must hold it, so a launcher always has something to fall back to. Needed only once some text is translated.
options: OptionsWhat whoever launches the bundle may choose: the variables and features it leaves to them, and how to ask for each.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Head
impl<'de> Deserialize<'de> for Head
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
impl StructuralPartialEq for Head
Auto Trait Implementations§
impl Freeze for Head
impl RefUnwindSafe for Head
impl Send for Head
impl Sync for Head
impl Unpin for Head
impl UnsafeUnpin for Head
impl UnwindSafe for Head
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