pub struct AnnotationEntry {
pub id: String,
pub text: StringOrMarkdown,
pub meta: Option<JsonObject>,
}Expand description
A single entry within an {@link Annotation}.
Fields§
§id: StringStable identifier within the enclosing annotation. Assigned by the client that dispatches the {@link AnnotationsEntrySetAction} (or the enclosing {@link AnnotationsSetAction}) introducing the entry.
text: StringOrMarkdownEntry body. A bare string is rendered as plain text; pass
{ markdown: "…" } to opt into Markdown rendering. See
{@link StringOrMarkdown}.
meta: Option<JsonObject>Producer-defined opaque metadata, surfaced to tooling but not interpreted by the protocol.
Trait Implementations§
Source§impl Clone for AnnotationEntry
impl Clone for AnnotationEntry
Source§fn clone(&self) -> AnnotationEntry
fn clone(&self) -> AnnotationEntry
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 AnnotationEntry
impl Debug for AnnotationEntry
Source§impl<'de> Deserialize<'de> for AnnotationEntry
impl<'de> Deserialize<'de> for AnnotationEntry
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 AnnotationEntry
impl PartialEq for AnnotationEntry
Source§fn eq(&self, other: &AnnotationEntry) -> bool
fn eq(&self, other: &AnnotationEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotationEntry
impl Serialize for AnnotationEntry
impl StructuralPartialEq for AnnotationEntry
Auto Trait Implementations§
impl Freeze for AnnotationEntry
impl RefUnwindSafe for AnnotationEntry
impl Send for AnnotationEntry
impl Sync for AnnotationEntry
impl Unpin for AnnotationEntry
impl UnsafeUnpin for AnnotationEntry
impl UnwindSafe for AnnotationEntry
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