[−][src]Trait sit_core::record::Record
Record is an immutable collection of files
Associated Types
type Read: Read
Implementation's type for reading files
type Hash: AsRef<[u8]>
Implementation's type for non-encoded hash
type Str: AsRef<str>
Implementation's type for file names
type Iter: Iterator<Item = (Self::Str, Self::Read)>
Implementation's iterator type for listing files
Required Methods
fn hash(&self) -> Self::Hash
Returns record hash
fn encoded_hash(&self) -> Self::Str
Returns encoded record hash
The encoding is defined by its container (typically, the repository)
and is intended to be human-readable and it MUST be an encoding of the
byte array returned by hash
fn item_id(&self) -> Self::Str
Returns enclosing item's ID
fn file_iter(&self) -> Self::Iter
Returns an iterator over files in the record