pub struct SchemaVersion(pub String);Expand description
Top-level schema discriminator string (e.g. greentic.environment.v1).
Tuple Fields§
§0: StringImplementations§
Source§impl SchemaVersion
impl SchemaVersion
pub const ENVIRONMENT_V1: &'static str = "greentic.environment.v1"
pub const ENVIRONMENT_RUNTIME_V1: &'static str = "greentic.environment-runtime.v1"
pub const REVISION_V1: &'static str = "greentic.revision.v1"
pub const TRAFFIC_SPLIT_V1: &'static str = "greentic.traffic-split.v1"
pub const BUNDLE_DEPLOYMENT_V1: &'static str = "greentic.bundle-deployment.v1"
pub const REVENUE_POLICY_V1: &'static str = "greentic.revenue-policy.v1"
pub const CREDENTIALS_V1: &'static str = "greentic.credentials.v1"
pub const PACK_CONFIG_V1: &'static str = "greentic.pack-config.v1"
pub const RUNTIME_CONFIG_V1: &'static str = "greentic.runtime-config.v1"
pub const PACK_LIST_LOCK_V1: &'static str = "greentic.pack-list-lock.v1"
pub const AUDIT_EVENT_V1: &'static str = "greentic.audit.event.v1"
pub const BACKUP_MANIFEST_V1: &'static str = "greentic.backup-manifest.v1"
pub const MESSAGING_ENDPOINT_V1: &'static str = "greentic.messaging-endpoint.v1"
pub fn new(s: impl Into<String>) -> Self
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for SchemaVersion
impl Clone for SchemaVersion
Source§fn clone(&self) -> SchemaVersion
fn clone(&self) -> SchemaVersion
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 SchemaVersion
impl Debug for SchemaVersion
Source§impl<'de> Deserialize<'de> for SchemaVersion
impl<'de> Deserialize<'de> for SchemaVersion
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 Display for SchemaVersion
impl Display for SchemaVersion
impl Eq for SchemaVersion
Source§impl From<&str> for SchemaVersion
impl From<&str> for SchemaVersion
Source§impl Hash for SchemaVersion
impl Hash for SchemaVersion
Source§impl PartialEq for SchemaVersion
impl PartialEq for SchemaVersion
Source§fn eq(&self, other: &SchemaVersion) -> bool
fn eq(&self, other: &SchemaVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaVersion
impl Serialize for SchemaVersion
impl StructuralPartialEq for SchemaVersion
Auto Trait Implementations§
impl Freeze for SchemaVersion
impl RefUnwindSafe for SchemaVersion
impl Send for SchemaVersion
impl Sync for SchemaVersion
impl Unpin for SchemaVersion
impl UnsafeUnpin for SchemaVersion
impl UnwindSafe for SchemaVersion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.