pub struct ShardInfo {
pub shard_id: u32,
pub primary_node: String,
pub replica_nodes: Vec<String>,
pub vector_count: usize,
pub status: ShardStatus,
pub created_at: DateTime<Utc>,
pub modified_at: DateTime<Utc>,
}Expand description
Information about a data shard
Fields§
§shard_id: u32Shard identifier
primary_node: StringPrimary node responsible for this shard
replica_nodes: Vec<String>Replica nodes for this shard
vector_count: usizeNumber of vectors in this shard
status: ShardStatusShard status
created_at: DateTime<Utc>Creation timestamp
modified_at: DateTime<Utc>Last modified timestamp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShardInfo
impl<'de> Deserialize<'de> for ShardInfo
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 ShardInfo
impl RefUnwindSafe for ShardInfo
impl Send for ShardInfo
impl Sync for ShardInfo
impl Unpin for ShardInfo
impl UnwindSafe for ShardInfo
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