Struct sit_core::repository::Record
[−]
[src]
pub struct Record<'a> { /* fields omitted */ }
A record within an issue
Methods
impl<'a> Record<'a>
[src]
fn path(&self) -> PathBuf
[src]
Returns path to the record, as it should be per repository's naming scheme
The record MIGHT not be at this path as this is the path where
it SHOULD BE. The actual path can be retrieved using actual_path()
fn actual_path(&self) -> &Path
[src]
Returns an actual path to the record directory
fn filtered<F>(
&'a self,
filter: F
) -> FilteredRecord<'a, <Record<'a> as RecordTrait>::Str, <Record<'a> as RecordTrait>::Read, Record<'a>, F> where
F: Fn(&(<Record<'a> as RecordTrait>::Str, <Record<'a> as RecordTrait>::Read)) -> bool,
[src]
&'a self,
filter: F
) -> FilteredRecord<'a, <Record<'a> as RecordTrait>::Str, <Record<'a> as RecordTrait>::Read, Record<'a>, F> where
F: Fn(&(<Record<'a> as RecordTrait>::Str, <Record<'a> as RecordTrait>::Read)) -> bool,
Returns a record with filtered files
Trait Implementations
impl<'a> Debug for Record<'a>
[src]
impl<'a> RepositoryProvider for Record<'a>
[src]
fn repository(&self) -> &Repository
[src]
Returns underlying repository;
impl<'a> DynamicallyHashable<'a> for Record<'a>
[src]
fn dynamically_hashed(&'a self) -> DynamicallyHashedRecord<'a, Self>
[src]
Returns a record that has its hash dynamically computed
impl<'a> Serialize for Record<'a>
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> PartialEq for Record<'a>
[src]
fn eq(&self, other: &Record<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a> RecordTrait for Record<'a>
[src]
type Read = File
Implementation's type for reading files
type Str = String
Implementation's type for file names
type Hash = Vec<u8>
Implementation's type for non-encoded hash
type Iter = RecordFileIterator<'a>
Implementation's iterator type for listing files
fn hash(&self) -> Self::Hash
[src]
Returns record hash
fn encoded_hash(&self) -> Self::Str
[src]
Returns encoded record hash Read more
fn file_iter(&self) -> Self::Iter
[src]
Returns an iterator over files in the record
fn issue_id(&self) -> Self::Str
[src]
Returns parent issue's ID