pub struct LexAnnotationOut {
pub label: String,
pub params: Vec<(String, String)>,
pub body: String,
pub verbatim_label: bool,
}Expand description
Response payload from LexHandler::on_format.
Returned wrapped in Option: Some(LexAnnotationOut) carries the
structured serialization; None lets the host fall back to its
built-in formatter for the underlying node kind.
verbatim_label: true selects the verbatim closing form
(subject-line content + :: label :: closer); false selects the
inline annotation form (:: label :: text or :: label :: plus
indented content).
Fields§
§label: StringCanonical fully-qualified label, e.g. "lex.tabular.table".
params: Vec<(String, String)>(key, value) pairs emitted in key=value order.
body: StringVerbatim or inline text body. Empty for marker-form annotations.
verbatim_label: booltrue for verbatim closing form, false for inline annotation
form. Defaults to false on the wire — omitted entirely from
the serialized JSON when false so marker-form annotations get
the compact { "label": "..." } shape.
Trait Implementations§
Source§impl Clone for LexAnnotationOut
impl Clone for LexAnnotationOut
Source§fn clone(&self) -> LexAnnotationOut
fn clone(&self) -> LexAnnotationOut
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LexAnnotationOut
impl Debug for LexAnnotationOut
Source§impl<'de> Deserialize<'de> for LexAnnotationOut
impl<'de> Deserialize<'de> for LexAnnotationOut
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>,
Source§impl PartialEq for LexAnnotationOut
impl PartialEq for LexAnnotationOut
Source§fn eq(&self, other: &LexAnnotationOut) -> bool
fn eq(&self, other: &LexAnnotationOut) -> bool
self and other values to be equal, and is used by ==.