pub struct AnnotationDecl {
pub name: String,
pub target: String,
pub meaning: String,
}Expand description
One declared output/cell annotation (D-18): a neutral, additive note binding
a human-readable meaning to a target (a cell key or output name).
Annotations are PURELY descriptive metadata the served tools may surface; they
carry no integrity or routing semantics. The field is additive and
#[serde(default)] on Manifest, so older manifests without an
annotations key deserialize unchanged (the CellRole::allowed_values
additive-serde precedent).
Fields§
§name: StringThe annotation name (a stable label).
target: StringThe annotation target — a cell key (sheet!addr) or an output name.
meaning: StringThe human-readable meaning this annotation conveys.
Trait Implementations§
Source§impl Clone for AnnotationDecl
impl Clone for AnnotationDecl
Source§fn clone(&self) -> AnnotationDecl
fn clone(&self) -> AnnotationDecl
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 AnnotationDecl
impl Debug for AnnotationDecl
Source§impl<'de> Deserialize<'de> for AnnotationDecl
impl<'de> Deserialize<'de> for AnnotationDecl
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 JsonSchema for AnnotationDecl
impl JsonSchema for AnnotationDecl
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AnnotationDecl
impl PartialEq for AnnotationDecl
Source§fn eq(&self, other: &AnnotationDecl) -> bool
fn eq(&self, other: &AnnotationDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotationDecl
impl Serialize for AnnotationDecl
impl StructuralPartialEq for AnnotationDecl
Auto Trait Implementations§
impl Freeze for AnnotationDecl
impl RefUnwindSafe for AnnotationDecl
impl Send for AnnotationDecl
impl Sync for AnnotationDecl
impl Unpin for AnnotationDecl
impl UnsafeUnpin for AnnotationDecl
impl UnwindSafe for AnnotationDecl
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