Struct Identity
pub struct Identity {
pub app_id: Option<String>,
pub version: Option<String>,
pub world: Option<String>,
pub publisher_id: Option<String>,
pub created_at: Option<u64>,
pub manifest: Option<Value>,
}Expand description
What a package’s header says about itself. Shown as fact only once the signature verifies; otherwise it is only what the file claims.
Fields§
§app_id: Option<String>The header’s app id.
version: Option<String>The header’s version.
world: Option<String>The header’s WIT world.
publisher_id: Option<String>The id of the key the header names, base64url.
created_at: Option<u64>The header’s created_at, ms since the epoch.
manifest: Option<Value>The manifest JSON as packed, when it is JSON.
Trait Implementations§
§impl Serialize for Identity
impl Serialize for Identity
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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