[][src]Struct augr_core::store::patch::Patch

pub struct Patch {
    pub id: Uuid,
    pub add_start: HashSet<AddStart>,
    pub remove_start: HashSet<RemoveStart>,
    pub add_tag: HashSet<AddTag>,
    pub remove_tag: HashSet<RemoveTag>,
    pub create_event: HashSet<CreateEvent>,
}

Fields

id: Uuidadd_start: HashSet<AddStart>remove_start: HashSet<RemoveStart>add_tag: HashSet<AddTag>remove_tag: HashSet<RemoveTag>create_event: HashSet<CreateEvent>

Methods

impl Patch[src]

pub fn new() -> Self[src]

pub fn with_id(id: PatchRef) -> Self[src]

pub fn patch_ref(&self) -> &PatchRef[src]

pub fn parents(&self) -> HashSet<PatchRef>[src]

pub fn add_start(
    self,
    parent: PatchRef,
    event: String,
    time: DateTime<Utc>
) -> Self
[src]

pub fn remove_start(
    self,
    patch: PatchRef,
    event: String,
    time: DateTime<Utc>
) -> Self
[src]

pub fn add_tag(self, parent: PatchRef, event: String, tag: String) -> Self[src]

pub fn remove_tag(self, patch: PatchRef, event: String, tag: String) -> Self[src]

pub fn create_event(
    self,
    event: String,
    start: DateTime<Utc>,
    tags: Vec<String>
) -> Self
[src]

pub fn insert_add_start(&mut self, add_start: AddStart)[src]

pub fn insert_remove_start(&mut self, remove_start: RemoveStart)[src]

pub fn insert_add_tag(&mut self, add_tag: AddTag)[src]

pub fn insert_remove_tag(&mut self, remove_tag: RemoveTag)[src]

pub fn insert_create_event(&mut self, create_event: CreateEvent)[src]

Trait Implementations

impl PartialEq<Patch> for Patch[src]

impl Default for Patch[src]

impl Clone for Patch[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Patch[src]

impl Debug for Patch[src]

impl Serialize for Patch[src]

impl<'de> Deserialize<'de> for Patch[src]

Auto Trait Implementations

impl Send for Patch

impl Unpin for Patch

impl Sync for Patch

impl UnwindSafe for Patch

impl RefUnwindSafe for Patch

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]