pub struct AppIdentityMetadata {
pub schema_version: u32,
pub application_id: ApplicationId,
pub display_name: String,
pub icon: AppIconMetadata,
}Expand description
Runtime metadata consumed by cargo-ailloli-ui.
§Examples
use ailloli_ui_core::{
AppIconMetadata, AppIdentityMetadata, ApplicationId,
APP_IDENTITY_METADATA_VERSION,
};
let metadata = AppIdentityMetadata {
schema_version: APP_IDENTITY_METADATA_VERSION,
application_id: ApplicationId::parse("org.example.paint")?,
display_name: "Paint".into(),
icon: AppIconMetadata {
conventional_path: "assets/icon.svg".into(),
sha256: "0".repeat(64),
},
};
assert_eq!(metadata.schema_version, 1);Fields§
§schema_version: u32Metadata schema version; currently APP_IDENTITY_METADATA_VERSION.
application_id: ApplicationIdValidated reverse-DNS application identifier.
display_name: StringTrimmed public application name.
icon: AppIconMetadataConventional icon path and content digest.
Trait Implementations§
Source§impl Clone for AppIdentityMetadata
impl Clone for AppIdentityMetadata
Source§fn clone(&self) -> AppIdentityMetadata
fn clone(&self) -> AppIdentityMetadata
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppIdentityMetadata
impl Debug for AppIdentityMetadata
Source§impl<'de> Deserialize<'de> for AppIdentityMetadata
impl<'de> Deserialize<'de> for AppIdentityMetadata
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 PartialEq for AppIdentityMetadata
impl PartialEq for AppIdentityMetadata
Source§impl Serialize for AppIdentityMetadata
impl Serialize for AppIdentityMetadata
impl Eq for AppIdentityMetadata
impl StructuralPartialEq for AppIdentityMetadata
Auto Trait Implementations§
impl Freeze for AppIdentityMetadata
impl RefUnwindSafe for AppIdentityMetadata
impl Send for AppIdentityMetadata
impl Sync for AppIdentityMetadata
impl Unpin for AppIdentityMetadata
impl UnwindSafe for AppIdentityMetadata
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