pub struct RecordDef {
pub name: String,
pub buffer: BufferType,
pub capacity: Option<usize>,
pub key_prefix: String,
pub key_variants: Vec<String>,
pub producers: Vec<String>,
pub consumers: Vec<String>,
pub schema_version: Option<u32>,
pub serialization: Option<SerializationType>,
pub observable: Option<ObservableDef>,
pub fields: Vec<FieldDef>,
pub connectors: Vec<ConnectorDef>,
}Expand description
One [[records]] entry.
Fields§
§name: StringPascalCase name, e.g. TemperatureReading.
buffer: BufferTypeBuffer type selection.
capacity: Option<usize>Required when buffer == SpmcRing. Ignored otherwise.
key_prefix: StringCommon key prefix, e.g. "sensors.temp.".
key_variants: Vec<String>Concrete key variant strings, e.g. ["indoor", "outdoor", "garage"].
producers: Vec<String>Names of tasks that produce values into this record.
consumers: Vec<String>Names of tasks that consume values from this record.
schema_version: Option<u32>Schema version for SchemaType::VERSION (default 1).
serialization: Option<SerializationType>Serialization format for Linkable generation (default "json").
observable: Option<ObservableDef>Observable trait metadata (omit to skip Observable impl).
fields: Vec<FieldDef>Value struct fields (agent-derived from datasheets / specs / conversation).
connectors: Vec<ConnectorDef>External connector definitions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RecordDef
impl<'de> Deserialize<'de> for RecordDef
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
Auto Trait Implementations§
impl Freeze for RecordDef
impl RefUnwindSafe for RecordDef
impl Send for RecordDef
impl Sync for RecordDef
impl Unpin for RecordDef
impl UnsafeUnpin for RecordDef
impl UnwindSafe for RecordDef
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