pub struct RecordMetadata {
pub record_id: u32,
pub record_key: String,
pub name: String,
pub type_id: String,
pub buffer_type: String,
pub buffer_capacity: Option<usize>,
pub producer_count: usize,
pub consumer_count: usize,
pub writable: bool,
pub created_at: String,
pub last_update: Option<String>,
pub outbound_connector_count: usize,
}Expand description
Metadata about a registered record type
Provides information for remote introspection, including buffer configuration, producer/consumer counts, and timestamps.
When the metrics feature is enabled, additional fields are included
for buffer-level statistics (produced_count, consumed_count, etc.).
Fields§
§record_id: u32Unique record identifier (index in the storage)
record_key: StringUnique record key (stable identifier for lookup)
name: StringRecord type name (Rust type name)
type_id: StringTypeId as hexadecimal string
buffer_type: StringBuffer type: “spmc_ring”, “single_latest”, “mailbox”, or “none”
buffer_capacity: Option<usize>Buffer capacity (None for unbounded or no buffer)
producer_count: usizeNumber of registered producer services
consumer_count: usizeNumber of registered consumer services
writable: boolWhether write operations are permitted for this record
created_at: StringWhen the record was registered (ISO 8601)
last_update: Option<String>Last update timestamp (ISO 8601), None if never updated
outbound_connector_count: usizeNumber of outbound connector links registered
Implementations§
Source§impl RecordMetadata
impl RecordMetadata
Sourcepub fn new<K: RecordKey>(
record_id: RecordId,
record_key: K,
type_id: TypeId,
name: String,
buffer_type: String,
buffer_capacity: Option<usize>,
producer_count: usize,
consumer_count: usize,
writable: bool,
created_at: String,
outbound_connector_count: usize,
) -> Self
pub fn new<K: RecordKey>( record_id: RecordId, record_key: K, type_id: TypeId, name: String, buffer_type: String, buffer_capacity: Option<usize>, producer_count: usize, consumer_count: usize, writable: bool, created_at: String, outbound_connector_count: usize, ) -> Self
Creates a new record metadata entry
§Arguments
record_id- The RecordId indexrecord_key- The unique record keytype_id- The TypeId of the recordname- The Rust type namebuffer_type- Buffer type stringbuffer_capacity- Optional buffer capacityproducer_count- Number of producersconsumer_count- Number of consumerswritable- Whether writes are permittedcreated_at- Creation timestamp (ISO 8601)outbound_connector_count- Number of outbound connectors
Sourcepub fn with_last_update(self, timestamp: String) -> Self
pub fn with_last_update(self, timestamp: String) -> Self
Sets the last update timestamp
Sourcepub fn with_last_update_opt(self, timestamp: Option<String>) -> Self
pub fn with_last_update_opt(self, timestamp: Option<String>) -> Self
Sets the last update timestamp from an Option
Trait Implementations§
Source§impl Clone for RecordMetadata
impl Clone for RecordMetadata
Source§fn clone(&self) -> RecordMetadata
fn clone(&self) -> RecordMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more