pub struct Issue { /* private fields */ }Expand description
The representation of an issue in it’s DAG form. This means that this issue can be modified (i.e., operations added) and than re-commited to disk.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Issue
impl<'de> Deserialize<'de> for Issue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Entity for Issue
impl Entity for Issue
Source§const FORMAT_VERSION: usize = 4usize
const FORMAT_VERSION: usize = 4usize
The expected format version number, that can be used for data
migration/upgrade.
Source§const TYPENAME: &str = "Issue"
const TYPENAME: &str = "Issue"
The name of the entity (issue, pull-request, …), for human
consumption.
Source§type HistoryStep = IssueHistoryStep
type HistoryStep = IssueHistoryStep
A step in the history of a
Snapshot's
Timeline.Source§type OperationData = IssueOperationData
type OperationData = IssueOperationData
The type of Operation this
Entity uses.Source§fn operations(&self) -> &Operations<Self>where
Self: Sized,
fn operations(&self) -> &Operations<Self>where
Self: Sized,
Return the
Operations that compose this Entity.Source§unsafe fn from_parts(
operations: Operations<Self>,
create_time: Time,
edit_time: Time,
current_head: ObjectId,
) -> Self
unsafe fn from_parts( operations: Operations<Self>, create_time: Time, edit_time: Time, current_head: ObjectId, ) -> Self
Construct this instance from the data stored on disk. Read more
Source§fn create_time(&self) -> &Timewhere
Self: Sized,
fn create_time(&self) -> &Timewhere
Self: Sized,
Return the
lamport::Time that was set, when this Entity was
first created.Source§fn edit_time(&self) -> &Timewhere
Self: Sized,
fn edit_time(&self) -> &Timewhere
Self: Sized,
Return the
lamport::Time that was set, when this Entity was last
edited.Source§fn current_head(&self) -> &oidwhere
Self: Sized,
fn current_head(&self) -> &oidwhere
Self: Sized,
Return the commit object id of the last commit that added
operations to this
Entity.Source§impl EntityRead for Issue
impl EntityRead for Issue
Source§type CustomReadError = Infallible
type CustomReadError = Infallible
Source§fn breadth_first_search(
repo: &Repository,
root_id: ObjectId,
) -> Result<Vec<Commit<'_>>, Error>
fn breadth_first_search( repo: &Repository, root_id: ObjectId, ) -> Result<Vec<Commit<'_>>, Error>
A breadth-first search to get a topological order of the Operations DAG
where we discover the parents commit and go back in time up to the
chronological root Read more
Auto Trait Implementations§
impl Freeze for Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnwindSafe for Issue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more