pub struct BatchUpdate {
pub id: NativeId,
pub update: TaskUpdate,
pub if_version: Option<String>,
pub when_priority: Vec<Priority>,
pub when_assignees: Option<Vec<String>>,
}Expand description
One update of a batch: a targeted update of one existing task, held to the version the
caller read when if_version names one, written only while the task holds one of the
priorities when_priority names when it names any, and only while it holds exactly the
people when_assignees names when it names a set.
Fields§
§id: NativeIdThe task.
update: TaskUpdateEvery field written, together, in one held write.
if_version: Option<String>The version the task must be at for anything to be written.
when_priority: Vec<Priority>The priorities the task must hold for anything to be written — Priority::None
matching a task with none. Empty sets no guard.
when_assignees: Option<Vec<String>>The people the task must be assigned to — exactly these, whatever their order — for
anything to be written; an empty set holds it to an unassigned task. None sets no
guard.
Trait Implementations§
Source§impl Clone for BatchUpdate
impl Clone for BatchUpdate
Source§impl Debug for BatchUpdate
impl Debug for BatchUpdate
Source§impl PartialEq for BatchUpdate
impl PartialEq for BatchUpdate
impl StructuralPartialEq for BatchUpdate
Auto Trait Implementations§
impl Forget for BatchUpdate
impl Freeze for BatchUpdatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<MetadataKey, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(MetadataKey, Value)>>: Freeze,
*const LeafNode<MetadataKey, SetValZST> is !null: Freeze,
PhantomData<Box<(MetadataKey, SetValZST)>>: Freeze,
PhantomData<TaskRef>: Freeze,
PhantomData<DependencyEdge>: Freeze,
PhantomData<Repository>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Priority>: Freeze,
impl Move for BatchUpdate
impl RefUnwindSafe for BatchUpdate
impl Send for BatchUpdatewhere
RawVecInner: Send,
NodeRef<Owned, MetadataKey, Value, LeafOrInternal>: Send,
BoxRaw<(MetadataKey, Value)>: Send,
NodeRef<Owned, MetadataKey, SetValZST, LeafOrInternal>: Send,
BoxRaw<(MetadataKey, SetValZST)>: Send,
impl Sync for BatchUpdatewhere
RawVecInner: Sync,
NodeRef<Owned, MetadataKey, Value, LeafOrInternal>: Sync,
BoxRaw<(MetadataKey, Value)>: Sync,
NodeRef<Owned, MetadataKey, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(MetadataKey, SetValZST)>: Sync,
impl Unpin for BatchUpdatewhere
*const u8 is !null: Unpin,
*const LeafNode<MetadataKey, Value> is !null: Unpin,
Box<(MetadataKey, Value)>: Unpin,
*const LeafNode<MetadataKey, SetValZST> is !null: Unpin,
Box<(MetadataKey, SetValZST)>: Unpin,
impl UnsafeUnpin for BatchUpdatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<MetadataKey, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(MetadataKey, Value)>>: UnsafeUnpin,
*const LeafNode<MetadataKey, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(MetadataKey, SetValZST)>>: UnsafeUnpin,
PhantomData<TaskRef>: UnsafeUnpin,
PhantomData<DependencyEdge>: UnsafeUnpin,
PhantomData<Repository>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Priority>: UnsafeUnpin,
impl UnwindSafe for BatchUpdatewhere
RawVecInner: UnwindSafe,
BTreeMap<MetadataKey, Value>: UnwindSafe,
BTreeMap<MetadataKey, SetValZST>: UnwindSafe,
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