Struct edge_schema::schema::AppMeta
source · 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: StringImplementations§
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
source§impl PartialEq for AppMeta
impl PartialEq for AppMeta
impl Eq for AppMeta
impl StructuralEq for AppMeta
impl StructuralPartialEq for AppMeta
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.