pub struct ComponentLibrary {
pub descriptor_version: u32,
pub ir_version: u32,
pub package: String,
pub version: String,
pub source_fingerprint: String,
pub languages: Vec<String>,
pub types: TypeTable,
pub components: Vec<ComponentDef>,
pub texts: Vec<LocalizedText>,
}Expand description
Versioned description of a component library crate, generated from its sources. Applications check it against their own configuration before using its components: descriptor and IR versions, the crate version it was generated from, and translations for every required language.
Fields§
§descriptor_version: u32§ir_version: u32§package: StringCargo package name of the library.
version: StringCargo package version the descriptor was generated from.
source_fingerprint: StringFingerprint of the library sources and configuration.
languages: Vec<String>§types: TypeTable§components: Vec<ComponentDef>§texts: Vec<LocalizedText>Trait Implementations§
Source§impl Clone for ComponentLibrary
impl Clone for ComponentLibrary
Source§impl Debug for ComponentLibrary
impl Debug for ComponentLibrary
Source§impl<'de> Deserialize<'de> for ComponentLibrary
impl<'de> Deserialize<'de> for ComponentLibrary
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 ComponentLibrary
impl PartialEq for ComponentLibrary
Source§impl Serialize for ComponentLibrary
impl Serialize for ComponentLibrary
impl StructuralPartialEq for ComponentLibrary
Auto Trait Implementations§
impl Freeze for ComponentLibrary
impl RefUnwindSafe for ComponentLibrary
impl Send for ComponentLibrary
impl Sync for ComponentLibrary
impl Unpin for ComponentLibrary
impl UnsafeUnpin for ComponentLibrary
impl UnwindSafe for ComponentLibrary
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