pub enum RepositoryStorageType {
Ephemeral,
Persistent,
}
Expand description
Convenience wrapper for the FIDL RepositoryStorageType.
Variants§
Ephemeral
Store the repository in-memory. This metadata will be lost if the process or device is restarted.
Persistent
Store the metadata to persitent mutable storage. This metadata will still be available if the process or device is restarted.
Trait Implementations§
Source§impl Clone for RepositoryStorageType
impl Clone for RepositoryStorageType
Source§fn clone(&self) -> RepositoryStorageType
fn clone(&self) -> RepositoryStorageType
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 RepositoryStorageType
impl Debug for RepositoryStorageType
Source§impl<'de> Deserialize<'de> for RepositoryStorageType
impl<'de> Deserialize<'de> for RepositoryStorageType
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<RepositoryStorageType> for RepositoryStorageType
impl From<RepositoryStorageType> for RepositoryStorageType
Source§fn from(other: RepositoryStorageType) -> Self
fn from(other: RepositoryStorageType) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryStorageType> for RepositoryStorageType
impl From<RepositoryStorageType> for RepositoryStorageType
Source§fn from(storage_type: RepositoryStorageType) -> Self
fn from(storage_type: RepositoryStorageType) -> Self
Converts to this type from the input type.
Source§impl Hash for RepositoryStorageType
impl Hash for RepositoryStorageType
Source§impl JsonSchema for RepositoryStorageType
impl JsonSchema for RepositoryStorageType
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
§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 Ord for RepositoryStorageType
impl Ord for RepositoryStorageType
Source§fn cmp(&self, other: &RepositoryStorageType) -> Ordering
fn cmp(&self, other: &RepositoryStorageType) -> 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 RepositoryStorageType
impl PartialEq for RepositoryStorageType
Source§impl PartialOrd for RepositoryStorageType
impl PartialOrd for RepositoryStorageType
Source§impl Serialize for RepositoryStorageType
impl Serialize for RepositoryStorageType
impl Eq for RepositoryStorageType
impl StructuralPartialEq for RepositoryStorageType
Auto Trait Implementations§
impl Freeze for RepositoryStorageType
impl RefUnwindSafe for RepositoryStorageType
impl Send for RepositoryStorageType
impl Sync for RepositoryStorageType
impl Unpin for RepositoryStorageType
impl UnwindSafe for RepositoryStorageType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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.