pub struct AnnotationsEntryRemovedAction {
pub annotation_id: String,
pub entry_id: String,
}Expand description
Remove a single {@link AnnotationEntry} from an annotation without collapsing the annotation itself. Used when more than one entry remains — to remove the last entry a client dispatches {@link AnnotationsRemovedAction} instead, since the protocol forbids empty annotations.
If either {@link annotationId} or {@link entryId} does not match the current state the action is a no-op.
Fields§
§annotation_id: StringThe {@link Annotation.id} the entry belongs to.
entry_id: StringThe {@link AnnotationEntry.id} to remove.
Trait Implementations§
Source§impl Clone for AnnotationsEntryRemovedAction
impl Clone for AnnotationsEntryRemovedAction
Source§fn clone(&self) -> AnnotationsEntryRemovedAction
fn clone(&self) -> AnnotationsEntryRemovedAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for AnnotationsEntryRemovedAction
impl<'de> Deserialize<'de> for AnnotationsEntryRemovedAction
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 PartialEq for AnnotationsEntryRemovedAction
impl PartialEq for AnnotationsEntryRemovedAction
Source§fn eq(&self, other: &AnnotationsEntryRemovedAction) -> bool
fn eq(&self, other: &AnnotationsEntryRemovedAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnnotationsEntryRemovedAction
Auto Trait Implementations§
impl Freeze for AnnotationsEntryRemovedAction
impl RefUnwindSafe for AnnotationsEntryRemovedAction
impl Send for AnnotationsEntryRemovedAction
impl Sync for AnnotationsEntryRemovedAction
impl Unpin for AnnotationsEntryRemovedAction
impl UnsafeUnpin for AnnotationsEntryRemovedAction
impl UnwindSafe for AnnotationsEntryRemovedAction
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