pub struct RecordMetadata {
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.
Fields§
§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(
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( 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
type_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
Returns a duplicate of the value. Read more
1.0.0 · 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 RecordMetadata
impl Debug for RecordMetadata
Source§impl<'de> Deserialize<'de> for RecordMetadata
impl<'de> Deserialize<'de> for RecordMetadata
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 RecordMetadata
impl RefUnwindSafe for RecordMetadata
impl Send for RecordMetadata
impl Sync for RecordMetadata
impl Unpin for RecordMetadata
impl UnwindSafe for RecordMetadata
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