Enum wasmer_config::package::PackageIdent
source · pub enum PackageIdent {
Named(NamedPackageIdent),
Hash(PackageHash),
}
Variants§
Named(NamedPackageIdent)
Hash(PackageHash)
Implementations§
source§impl PackageIdent
impl PackageIdent
pub fn as_named(&self) -> Option<&NamedPackageIdent>
pub fn as_hash(&self) -> Option<&PackageHash>
Trait Implementations§
source§impl Clone for PackageIdent
impl Clone for PackageIdent
source§fn clone(&self) -> PackageIdent
fn clone(&self) -> PackageIdent
Returns a copy of the value. Read more
1.0.0 · 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 PackageIdent
impl Debug for PackageIdent
source§impl<'de> Deserialize<'de> for PackageIdent
impl<'de> Deserialize<'de> for PackageIdent
source§fn deserialize<D>(deserializer: D) -> Result<PackageIdent, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<PackageIdent, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PackageIdent
impl Display for PackageIdent
source§impl From<NamedPackageIdent> for PackageIdent
impl From<NamedPackageIdent> for PackageIdent
source§fn from(value: NamedPackageIdent) -> Self
fn from(value: NamedPackageIdent) -> Self
Converts to this type from the input type.
source§impl From<PackageHash> for PackageIdent
impl From<PackageHash> for PackageIdent
source§fn from(value: PackageHash) -> Self
fn from(value: PackageHash) -> Self
Converts to this type from the input type.
source§impl From<PackageIdent> for PackageSource
impl From<PackageIdent> for PackageSource
source§fn from(id: PackageIdent) -> Self
fn from(id: PackageIdent) -> Self
Converts to this type from the input type.
source§impl FromStr for PackageIdent
impl FromStr for PackageIdent
source§impl Hash for PackageIdent
impl Hash for PackageIdent
source§impl JsonSchema for PackageIdent
impl JsonSchema for PackageIdent
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for PackageIdent
impl PartialEq for PackageIdent
source§fn eq(&self, other: &PackageIdent) -> bool
fn eq(&self, other: &PackageIdent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PackageIdent
impl Serialize for PackageIdent
impl Eq for PackageIdent
impl StructuralPartialEq for PackageIdent
Auto Trait Implementations§
impl Freeze for PackageIdent
impl RefUnwindSafe for PackageIdent
impl Send for PackageIdent
impl Sync for PackageIdent
impl Unpin for PackageIdent
impl UnwindSafe for PackageIdent
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 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.