#[non_exhaustive]pub enum ContentAddressMethod {
Text,
Flat,
Recursive,
}Expand description
Content-addressing method.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
Text content (for derivation files and string-to-store).
Format: text:<algo>:<hash>
Flat
Flat file hashing (no NAR wrapping).
Format: fixed:out:<algo>:<hash>
Recursive
Recursive NAR hashing.
Format: fixed:out:r:<algo>:<hash>
Trait Implementations§
Source§impl Clone for ContentAddressMethod
impl Clone for ContentAddressMethod
Source§fn clone(&self) -> ContentAddressMethod
fn clone(&self) -> ContentAddressMethod
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 ContentAddressMethod
impl Debug for ContentAddressMethod
Source§impl Display for ContentAddressMethod
impl Display for ContentAddressMethod
impl Eq for ContentAddressMethod
Source§impl FromStr for ContentAddressMethod
impl FromStr for ContentAddressMethod
Source§impl PartialEq for ContentAddressMethod
impl PartialEq for ContentAddressMethod
Source§fn eq(&self, other: &ContentAddressMethod) -> bool
fn eq(&self, other: &ContentAddressMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContentAddressMethod
Auto Trait Implementations§
impl Freeze for ContentAddressMethod
impl RefUnwindSafe for ContentAddressMethod
impl Send for ContentAddressMethod
impl Sync for ContentAddressMethod
impl Unpin for ContentAddressMethod
impl UnsafeUnpin for ContentAddressMethod
impl UnwindSafe for ContentAddressMethod
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