Struct sit_core::repository::Item
[−]
[src]
pub struct Item<'a> { /* fields omitted */ }
An item residing in a repository
Methods
impl<'a> Item<'a>
[src]
pub fn new_record_in<P: AsRef<Path>, S: AsRef<str>, R: Read, I: Iterator<Item = (S, R)>>(
&self,
path: P,
iter: I,
link_parents: bool
) -> Result<<Item<'a> as ItemTrait>::Record, <Item<'a> as ItemTrait>::Error>
[src]
&self,
path: P,
iter: I,
link_parents: bool
) -> Result<<Item<'a> as ItemTrait>::Record, <Item<'a> as ItemTrait>::Error>
Trait Implementations
impl<'a> Debug for Item<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> ItemTrait for Item<'a>
[src]
type Error = Error
Error type used by the implementation
type Record = Record<'a>
Record type used by the implementation
type Records = Vec<Record<'a>>
Type used to list records that can be referenced as a slice of records
type RecordIter = ItemRecordIter<'a>
Iterator over lists of records
fn id(&self) -> &str
[src]
Issue must have an ID, ideally human-readable
fn record_iter(&self) -> Result<Self::RecordIter, Self::Error>
[src]
Iterates through the tree of records
fn new_record<S: AsRef<str>, R: Read, I: Iterator<Item = (S, R)>>(
&self,
iter: I,
link_parents: bool
) -> Result<Self::Record, Self::Error>
[src]
&self,
iter: I,
link_parents: bool
) -> Result<Self::Record, Self::Error>
Creates and returns a new record. Read more