pub struct ContentAddress {
pub method: ContentAddressMethod,
pub hash: NixHash,
}Expand description
A content address assertion.
Fields§
§method: ContentAddressMethod§hash: NixHashImplementations§
Source§impl ContentAddress
impl ContentAddress
Sourcepub fn parse(s: &str) -> Result<Self, ContentAddressError>
pub fn parse(s: &str) -> Result<Self, ContentAddressError>
Parse from the string format used in NarInfo CA field.
Sourcepub fn to_nix_string(&self) -> String
pub fn to_nix_string(&self) -> String
Serialize to the string format.
Trait Implementations§
Source§impl Clone for ContentAddress
impl Clone for ContentAddress
Source§fn clone(&self) -> ContentAddress
fn clone(&self) -> ContentAddress
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 ContentAddress
impl Debug for ContentAddress
Source§impl Display for ContentAddress
impl Display for ContentAddress
impl Eq for ContentAddress
Source§impl FromStr for ContentAddress
impl FromStr for ContentAddress
Source§impl PartialEq for ContentAddress
impl PartialEq for ContentAddress
Source§fn eq(&self, other: &ContentAddress) -> bool
fn eq(&self, other: &ContentAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContentAddress
Auto Trait Implementations§
impl Freeze for ContentAddress
impl RefUnwindSafe for ContentAddress
impl Send for ContentAddress
impl Sync for ContentAddress
impl Unpin for ContentAddress
impl UnsafeUnpin for ContentAddress
impl UnwindSafe for ContentAddress
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