Trait sit_core::issue::Issue [] [src]

pub trait Issue: 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>; }

Issue is a topic or a problem for debate, discussion and resolution. Also known as a "ticket".

Because of SIT's extensible nature, issue can be also be used to represent a wild variety of entities. For example, a Kanban board with its records representing movement of other issues into, across and out of the board.

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