pub struct AppMeta {
pub app_id: String,
pub app_version_id: String,
}
Expand description
Well-known annotations used by the backend.
Fields§
§app_id: String
§app_version_id: String
Implementations§
Source§impl AppMeta
impl AppMeta
Sourcepub const ANNOTATION_BACKEND_APP_ID: &str = "wasmer.io/app_id"
pub const ANNOTATION_BACKEND_APP_ID: &str = "wasmer.io/app_id"
Well-known annotation for specifying the app id.
Sourcepub const ANNOTATION_BACKEND_APP_VERSION_ID: &str = "wasmer.io/app_version_id"
pub const ANNOTATION_BACKEND_APP_VERSION_ID: &str = "wasmer.io/app_version_id"
Well-known annotation for specifying the app version id.
Sourcepub fn try_from_annotations(map: &HashMap<String, Value>) -> Result<Self, Error>
pub fn try_from_annotations(map: &HashMap<String, Value>) -> Result<Self, Error>
Extract annotations from a generic annotation map.
pub fn try_from_entity<T>(entity: &Entity<T>) -> Result<Self, Error>
pub fn new(app_id: String, app_version_id: String) -> Self
pub fn to_annotations_map(self) -> HashMap<String, Value>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppMeta
impl<'de> Deserialize<'de> for AppMeta
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
impl Eq for AppMeta
impl StructuralPartialEq for AppMeta
Auto Trait Implementations§
impl Freeze for AppMeta
impl RefUnwindSafe for AppMeta
impl Send for AppMeta
impl Sync for AppMeta
impl Unpin for AppMeta
impl UnwindSafe for AppMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.