Trait sit_core::item::Item [] [src]

pub trait Item: Sized {
    type Error: Error + Debug;
    type Record: Record;
    type Records: IntoIterator<Item = Self::Record>;
    type RecordIter: Iterator<Item = Self::Records>;
    fn id(&self) -> &str;
fn record_iter(&self) -> Result<Self::RecordIter, Self::Error>;
fn new_record<S: AsRef<str>, R: Read, I: Iterator<Item = (S, R)>>(
        &self,
        iter: I,
        link_parents: bool
    ) -> Result<Self::Record, Self::Error>; }

Because of SIT's extensible nature, item can be used to represent a wild variety of entities, such as issue, documents, accounts, etc.

Associated Types

Error type used by the implementation

Record type used by the implementation

Type used to list records that can be referenced as a slice of records

Iterator over lists of records

Required Methods

Issue must have an ID, ideally human-readable

Iterates through the tree of records

Creates and returns a new record.

Will reference all dangling records as its parent, unless link_parents is set to false

Implementors