pub struct AnnotationsSetAction {
pub annotation: Annotation,
}Expand description
Upsert an {@link Annotation} in the annotations channel — adds a new annotation, or replaces an existing one identified by {@link Annotation.id}.
Dispatched by a client to create an annotation (together with its mandatory first entry) or to re-anchor / resolve an existing one; the dispatching client assigns the {@link Annotation.id} and the id of any new entry. When replacing, the full annotation payload (including its {@link Annotation.entries | entries} list) is substituted; producers SHOULD prefer {@link AnnotationsEntrySetAction} for per-entry edits, and {@link AnnotationsUpdatedAction} to resolve / re-anchor an existing annotation, to keep wire updates small.
Fields§
§annotation: AnnotationThe new or replacement annotation. MUST contain at least one entry.
Trait Implementations§
Source§impl Clone for AnnotationsSetAction
impl Clone for AnnotationsSetAction
Source§fn clone(&self) -> AnnotationsSetAction
fn clone(&self) -> AnnotationsSetAction
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 Debug for AnnotationsSetAction
impl Debug for AnnotationsSetAction
Source§impl<'de> Deserialize<'de> for AnnotationsSetAction
impl<'de> Deserialize<'de> for AnnotationsSetAction
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 AnnotationsSetAction
impl PartialEq for AnnotationsSetAction
Source§fn eq(&self, other: &AnnotationsSetAction) -> bool
fn eq(&self, other: &AnnotationsSetAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotationsSetAction
impl Serialize for AnnotationsSetAction
impl StructuralPartialEq for AnnotationsSetAction
Auto Trait Implementations§
impl Freeze for AnnotationsSetAction
impl RefUnwindSafe for AnnotationsSetAction
impl Send for AnnotationsSetAction
impl Sync for AnnotationsSetAction
impl Unpin for AnnotationsSetAction
impl UnsafeUnpin for AnnotationsSetAction
impl UnwindSafe for AnnotationsSetAction
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