pub struct MetaSnapshot {Show 20 fields
pub databases: Vec<Database>,
pub schemas: Vec<Schema>,
pub sources: Vec<Source>,
pub sinks: Vec<Sink>,
pub tables: Vec<Table>,
pub indexes: Vec<Index>,
pub views: Vec<View>,
pub functions: Vec<Function>,
pub connections: Vec<Connection>,
pub subscriptions: Vec<Subscription>,
pub users: Vec<UserInfo>,
pub session_params: Option<GetSessionParamsResponse>,
pub secrets: Vec<Secret>,
pub nodes: Vec<WorkerNode>,
pub hummock_version: Option<HummockVersion>,
pub meta_backup_manifest_id: Option<MetaBackupManifestId>,
pub hummock_write_limits: Option<WriteLimits>,
pub streaming_worker_slot_mappings: Vec<FragmentWorkerSlotMapping>,
pub serving_worker_slot_mappings: Vec<FragmentWorkerSlotMapping>,
pub version: Option<SnapshotVersion>,
}
Fields§
§databases: Vec<Database>
§schemas: Vec<Schema>
§sources: Vec<Source>
§sinks: Vec<Sink>
§tables: Vec<Table>
§indexes: Vec<Index>
§views: Vec<View>
§functions: Vec<Function>
§connections: Vec<Connection>
§subscriptions: Vec<Subscription>
§users: Vec<UserInfo>
§session_params: Option<GetSessionParamsResponse>
§secrets: Vec<Secret>
§nodes: Vec<WorkerNode>
§hummock_version: Option<HummockVersion>
§meta_backup_manifest_id: Option<MetaBackupManifestId>
§hummock_write_limits: Option<WriteLimits>
§streaming_worker_slot_mappings: Vec<FragmentWorkerSlotMapping>
for streaming
serving_worker_slot_mappings: Vec<FragmentWorkerSlotMapping>
§version: Option<SnapshotVersion>
Implementations§
source§impl MetaSnapshot
impl MetaSnapshot
pub fn get_databases(&self) -> &Vec<Database>
pub fn get_schemas(&self) -> &Vec<Schema>
pub fn get_sources(&self) -> &Vec<Source>
pub fn get_sinks(&self) -> &Vec<Sink>
pub fn get_tables(&self) -> &Vec<Table>
pub fn get_indexes(&self) -> &Vec<Index>
pub fn get_views(&self) -> &Vec<View>
pub fn get_functions(&self) -> &Vec<Function>
pub fn get_connections(&self) -> &Vec<Connection>
pub fn get_subscriptions(&self) -> &Vec<Subscription>
pub fn get_users(&self) -> &Vec<UserInfo>
pub fn get_session_params( &self, ) -> Result<&GetSessionParamsResponse, PbFieldNotFound>
pub fn get_secrets(&self) -> &Vec<Secret>
pub fn get_nodes(&self) -> &Vec<WorkerNode>
pub fn get_hummock_version(&self) -> Result<&HummockVersion, PbFieldNotFound>
pub fn get_meta_backup_manifest_id( &self, ) -> Result<&MetaBackupManifestId, PbFieldNotFound>
pub fn get_hummock_write_limits(&self) -> Result<&WriteLimits, PbFieldNotFound>
pub fn get_streaming_worker_slot_mappings( &self, ) -> &Vec<FragmentWorkerSlotMapping>
pub fn get_serving_worker_slot_mappings( &self, ) -> &Vec<FragmentWorkerSlotMapping>
pub fn get_version(&self) -> Result<&SnapshotVersion, PbFieldNotFound>
Trait Implementations§
source§impl Clone for MetaSnapshot
impl Clone for MetaSnapshot
source§fn clone(&self) -> MetaSnapshot
fn clone(&self) -> MetaSnapshot
Returns a copy 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 MetaSnapshot
impl Debug for MetaSnapshot
source§impl Default for MetaSnapshot
impl Default for MetaSnapshot
source§impl<'de> Deserialize<'de> for MetaSnapshot
impl<'de> Deserialize<'de> for MetaSnapshot
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 Message for MetaSnapshot
impl Message for MetaSnapshot
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for MetaSnapshot
impl PartialEq for MetaSnapshot
source§impl Serialize for MetaSnapshot
impl Serialize for MetaSnapshot
impl StructuralPartialEq for MetaSnapshot
Auto Trait Implementations§
impl Freeze for MetaSnapshot
impl RefUnwindSafe for MetaSnapshot
impl Send for MetaSnapshot
impl Sync for MetaSnapshot
impl Unpin for MetaSnapshot
impl UnwindSafe for MetaSnapshot
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request