Struct firefly_meta::Meta
source · pub struct Meta<'a> {
pub app_id: &'a str,
pub app_name: &'a str,
pub author_id: &'a str,
pub author_name: &'a str,
pub launcher: bool,
pub sudo: bool,
pub version: i32,
}Fields§
§app_id: &'a str§app_name: &'a strApp name is shown in the launcher in the list of apps.
launcher: boolLauncher is the app that starts first when runtime is launched.
sudo: boolLet the app to use privileged and dangerous runtime API.
version: i32The ever-incrementing version number of the app build. Used by netplay to ensure both devices running the same version.
Implementations§
source§impl<'a> Meta<'a>
impl<'a> Meta<'a>
sourcepub fn decode(s: &'a [u8]) -> Result<Self, Error>
pub fn decode(s: &'a [u8]) -> Result<Self, Error>
Load metadata from bytes generated by Meta::encode.
§Errors
May return an error if the buffer does not contain valid metadata.
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Meta<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Meta<'a>
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
source§impl<'a> PartialEq for Meta<'a>
impl<'a> PartialEq for Meta<'a>
impl<'a> Eq for Meta<'a>
impl<'a> StructuralPartialEq for Meta<'a>
Auto Trait Implementations§
impl<'a> Freeze for Meta<'a>
impl<'a> RefUnwindSafe for Meta<'a>
impl<'a> Send for Meta<'a>
impl<'a> Sync for Meta<'a>
impl<'a> Unpin for Meta<'a>
impl<'a> UnwindSafe for Meta<'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