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: Uuid§add_start: HashSet<AddStart>§remove_start: HashSet<RemoveStart>§add_tag: HashSet<AddTag>§remove_tag: HashSet<RemoveTag>§create_event: HashSet<CreateEvent>Implementations§
Source§impl Patch
impl Patch
pub fn new() -> Self
pub fn with_id(id: PatchRef) -> Self
pub fn patch_ref(&self) -> &PatchRef
pub fn parents(&self) -> HashSet<PatchRef>
pub fn add_start( self, parent: PatchRef, event: String, time: DateTime<Utc>, ) -> Self
pub fn remove_start( self, patch: PatchRef, event: String, time: DateTime<Utc>, ) -> Self
pub fn add_tag(self, parent: PatchRef, event: String, tag: String) -> Self
pub fn remove_tag(self, patch: PatchRef, event: String, tag: String) -> Self
pub fn create_event( self, event: String, start: DateTime<Utc>, tags: Vec<String>, ) -> Self
pub fn insert_add_start(&mut self, add_start: AddStart)
pub fn insert_remove_start(&mut self, remove_start: RemoveStart)
pub fn insert_add_tag(&mut self, add_tag: AddTag)
pub fn insert_remove_tag(&mut self, remove_tag: RemoveTag)
pub fn insert_create_event(&mut self, create_event: CreateEvent)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Patch
impl<'de> Deserialize<'de> for Patch
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
impl Eq for Patch
impl StructuralPartialEq for Patch
Auto Trait Implementations§
impl Freeze for Patch
impl RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnwindSafe for Patch
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