pub struct ImplementationDescriptor {Show 15 fields
pub schema_version: u32,
pub semantic_kind: ImplementationSemanticKind,
pub semantic_id: String,
pub semantic_fingerprint: String,
pub provider_id: String,
pub binding_id: String,
pub implementation_version: String,
pub implementation_fingerprint: String,
pub supported_controller_families: BTreeSet<String>,
pub runtime_requirements: BTreeSet<String>,
pub capabilities: BTreeSet<ImplementationCapability>,
pub portability: PortabilityClass,
pub replayability: ReplayabilityClass,
pub registry_key: Option<String>,
pub descriptor_fingerprint: String,
}Fields§
§schema_version: u32§semantic_kind: ImplementationSemanticKind§semantic_id: String§semantic_fingerprint: String§provider_id: String§binding_id: String§implementation_version: String§implementation_fingerprint: String§supported_controller_families: BTreeSet<String>§runtime_requirements: BTreeSet<String>§capabilities: BTreeSet<ImplementationCapability>§portability: PortabilityClass§replayability: ReplayabilityClass§registry_key: Option<String>§descriptor_fingerprint: StringImplementations§
Source§impl ImplementationDescriptor
impl ImplementationDescriptor
pub fn new( semantic_kind: ImplementationSemanticKind, semantic_id: impl Into<String>, semantic_fingerprint: impl Into<String>, provider_id: impl Into<String>, binding_id: impl Into<String>, implementation_version: impl Into<String>, implementation_fingerprint: impl Into<String>, supported_controller_families: BTreeSet<String>, runtime_requirements: BTreeSet<String>, capabilities: BTreeSet<ImplementationCapability>, portability: PortabilityClass, replayability: ReplayabilityClass, registry_key: Option<String>, ) -> Result<Self>
pub fn from_json(json: &str) -> Result<Self>
pub fn compute_fingerprint(&self) -> Result<String>
pub fn validate(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for ImplementationDescriptor
impl Clone for ImplementationDescriptor
Source§fn clone(&self) -> ImplementationDescriptor
fn clone(&self) -> ImplementationDescriptor
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 ImplementationDescriptor
impl Debug for ImplementationDescriptor
Source§impl<'de> Deserialize<'de> for ImplementationDescriptor
impl<'de> Deserialize<'de> for ImplementationDescriptor
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 ImplementationDescriptor
Source§impl PartialEq for ImplementationDescriptor
impl PartialEq for ImplementationDescriptor
Source§impl Serialize for ImplementationDescriptor
impl Serialize for ImplementationDescriptor
impl StructuralPartialEq for ImplementationDescriptor
Auto Trait Implementations§
impl Freeze for ImplementationDescriptor
impl RefUnwindSafe for ImplementationDescriptor
impl Send for ImplementationDescriptor
impl Sync for ImplementationDescriptor
impl Unpin for ImplementationDescriptor
impl UnsafeUnpin for ImplementationDescriptor
impl UnwindSafe for ImplementationDescriptor
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,
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.