pub struct AppKey { /* private fields */ }Expand description
Stable application identity: (appId, signerId). An app is uniquely
identified by its AppKey. appId is the manifest package (human-friendly label, not
a security boundary); signerId is the cryptographic update authority.
Display format is {app_id}:{signer_id}, used as keys in Desired State Documents.
Implementations§
Source§impl AppKey
impl AppKey
Sourcepub fn new(
app_id: impl Into<Box<str>>,
signer_id: SignerId,
) -> Result<Self, InvalidAppKey>
pub fn new( app_id: impl Into<Box<str>>, signer_id: SignerId, ) -> Result<Self, InvalidAppKey>
Creates a new AppKey from an app ID and signer ID.
§Errors
Returns InvalidAppKey::EmptyAppId if the app_id is empty.
Returns InvalidAppKey::ColonInAppId if the app_id contains a colon.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppKey
impl<'de> Deserialize<'de> for AppKey
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AppKey
Source§impl Ord for AppKey
impl Ord for AppKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for AppKey
impl PartialOrd for AppKey
impl StructuralPartialEq for AppKey
Auto Trait Implementations§
impl Freeze for AppKey
impl RefUnwindSafe for AppKey
impl Send for AppKey
impl Sync for AppKey
impl Unpin for AppKey
impl UnsafeUnpin for AppKey
impl UnwindSafe for AppKey
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