pub enum RepositoryKey {
Ed25519(Vec<u8>),
}
Expand description
Convenience wrapper for the FIDL RepositoryKeyConfig type
Variants§
Trait Implementations§
source§impl Clone for RepositoryKey
impl Clone for RepositoryKey
source§fn clone(&self) -> RepositoryKey
fn clone(&self) -> RepositoryKey
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 RepositoryKey
impl Debug for RepositoryKey
source§impl<'de> Deserialize<'de> for RepositoryKey
impl<'de> Deserialize<'de> for RepositoryKey
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 From<RepositoryKey> for RepositoryKeyConfig
impl From<RepositoryKey> for RepositoryKeyConfig
source§fn from(key: RepositoryKey) -> Self
fn from(key: RepositoryKey) -> Self
Converts to this type from the input type.
source§impl Hash for RepositoryKey
impl Hash for RepositoryKey
source§impl Ord for RepositoryKey
impl Ord for RepositoryKey
source§fn cmp(&self, other: &RepositoryKey) -> Ordering
fn cmp(&self, other: &RepositoryKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RepositoryKey
impl PartialEq for RepositoryKey
source§fn eq(&self, other: &RepositoryKey) -> bool
fn eq(&self, other: &RepositoryKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RepositoryKey
impl PartialOrd for RepositoryKey
source§fn partial_cmp(&self, other: &RepositoryKey) -> Option<Ordering>
fn partial_cmp(&self, other: &RepositoryKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for RepositoryKey
impl Serialize for RepositoryKey
source§impl TryFrom<RepositoryKeyConfig> for RepositoryKey
impl TryFrom<RepositoryKeyConfig> for RepositoryKey
§type Error = RepositoryParseError
type Error = RepositoryParseError
The type returned in the event of a conversion error.
source§fn try_from(id: RepositoryKeyConfig) -> Result<Self, RepositoryParseError>
fn try_from(id: RepositoryKeyConfig) -> Result<Self, RepositoryParseError>
Performs the conversion.
impl Eq for RepositoryKey
impl StructuralPartialEq for RepositoryKey
Auto Trait Implementations§
impl Freeze for RepositoryKey
impl RefUnwindSafe for RepositoryKey
impl Send for RepositoryKey
impl Sync for RepositoryKey
impl Unpin for RepositoryKey
impl UnwindSafe for RepositoryKey
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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.