pub struct CreateKeyspaceRequest {
pub name: String,
pub force: bool,
pub allow_empty_v_schema: bool,
pub served_froms: Vec<ServedFrom>,
pub type: i32,
pub base_keyspace: String,
pub snapshot_time: Option<Time>,
pub durability_policy: String,
pub sidecar_db_name: String,
}Fields§
§name: StringName is the name of the keyspace.
force: boolForce proceeds with the request even if the keyspace already exists.
allow_empty_v_schema: boolAllowEmptyVSchema allows a keyspace to be created with no vschema.
served_froms: Vec<ServedFrom>ServedFroms specifies a set of db_type:keyspace pairs used to serve traffic for the keyspace.
type: i32Type is the type of the keyspace to create.
base_keyspace: StringBaseKeyspace specifies the base keyspace for SNAPSHOT keyspaces. It is required to create a SNAPSHOT keyspace.
snapshot_time: Option<Time>SnapshotTime specifies the snapshot time for this keyspace. It is required to create a SNAPSHOT keyspace.
durability_policy: StringDurabilityPolicy is the durability policy to be used for this keyspace.
sidecar_db_name: StringSidecarDBName is the name of the sidecar database that each vttablet in the keyspace will use.
Implementations§
Source§impl CreateKeyspaceRequest
impl CreateKeyspaceRequest
Sourcepub fn type(&self) -> KeyspaceType
pub fn type(&self) -> KeyspaceType
Returns the enum value of type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_type(&mut self, value: KeyspaceType)
pub fn set_type(&mut self, value: KeyspaceType)
Sets type to the provided enum value.
Trait Implementations§
Source§impl Clone for CreateKeyspaceRequest
impl Clone for CreateKeyspaceRequest
Source§fn clone(&self) -> CreateKeyspaceRequest
fn clone(&self) -> CreateKeyspaceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateKeyspaceRequest
impl Debug for CreateKeyspaceRequest
Source§impl Default for CreateKeyspaceRequest
impl Default for CreateKeyspaceRequest
Source§impl Message for CreateKeyspaceRequest
impl Message for CreateKeyspaceRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for CreateKeyspaceRequest
impl PartialEq for CreateKeyspaceRequest
impl StructuralPartialEq for CreateKeyspaceRequest
Auto Trait Implementations§
impl Freeze for CreateKeyspaceRequest
impl RefUnwindSafe for CreateKeyspaceRequest
impl Send for CreateKeyspaceRequest
impl Sync for CreateKeyspaceRequest
impl Unpin for CreateKeyspaceRequest
impl UnwindSafe for CreateKeyspaceRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
T in a tonic::Request