pub struct ActionItemRequestUpdate {
pub id: ActionItemRequestUpdateIdentifier,
pub action_status: Option<ActionItemStatus>,
pub action_type: Option<ActionItemRequestType>,
}Fields§
§id: ActionItemRequestUpdateIdentifier§action_status: Option<ActionItemStatus>§action_type: Option<ActionItemRequestType>Implementations§
Source§impl ActionItemRequestUpdate
impl ActionItemRequestUpdate
pub fn from_id(id: &BlockId) -> Self
pub fn from_context(construct_did: &ConstructDid, internal_key: &str) -> Self
Sourcepub fn from_diff(
new_item: &ActionItemRequest,
existing_item: &ActionItemRequest,
) -> Option<Self>
pub fn from_diff( new_item: &ActionItemRequest, existing_item: &ActionItemRequest, ) -> Option<Self>
Compares new_item and existing_item, returning an ActionItemRequestUpdate if
the ids are the same and either the mutable properties of the type or that status have been updated.
pub fn set_status(&mut self, new_status: ActionItemStatus) -> Self
pub fn set_type(&mut self, new_type: ActionItemRequestType) -> Self
pub fn normalize( &self, action_item_requests: &BTreeMap<BlockId, ActionItemRequest>, ) -> Option<NormalizedActionItemRequestUpdate>
Trait Implementations§
Source§impl Clone for ActionItemRequestUpdate
impl Clone for ActionItemRequestUpdate
Source§fn clone(&self) -> ActionItemRequestUpdate
fn clone(&self) -> ActionItemRequestUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionItemRequestUpdate
impl Debug for ActionItemRequestUpdate
Auto Trait Implementations§
impl Freeze for ActionItemRequestUpdate
impl RefUnwindSafe for ActionItemRequestUpdate
impl Send for ActionItemRequestUpdate
impl Sync for ActionItemRequestUpdate
impl Unpin for ActionItemRequestUpdate
impl UnwindSafe for ActionItemRequestUpdate
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