#[non_exhaustive]pub enum ApplicationItem {
Typed(Application),
Unknown {
module: String,
raw: Value,
},
}Expand description
One application as returned by the API — typed when this SDK version knows its module,
preserved raw when it doesn’t.
The applications list mixes module types, and the platform can ship modules newer than this
SDK. Instead of failing a whole list (or get) on the first unfamiliar module, such items are
returned as ApplicationItem::Unknown with their JSON intact.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Typed(Application)
A module type this SDK version knows.
Unknown
A module type unknown to this SDK version — raw JSON preserved.
Implementations§
Trait Implementations§
Source§impl Clone for ApplicationItem
impl Clone for ApplicationItem
Source§fn clone(&self) -> ApplicationItem
fn clone(&self) -> ApplicationItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApplicationItem
impl Debug for ApplicationItem
Source§impl PartialEq for ApplicationItem
impl PartialEq for ApplicationItem
impl StructuralPartialEq for ApplicationItem
Auto Trait Implementations§
impl Freeze for ApplicationItem
impl RefUnwindSafe for ApplicationItem
impl Send for ApplicationItem
impl Sync for ApplicationItem
impl Unpin for ApplicationItem
impl UnsafeUnpin for ApplicationItem
impl UnwindSafe for ApplicationItem
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