pub struct CreateDatabaseRequest {
pub name: String,
pub create_in_parent_id: String,
pub encrypted: bool,
pub read_audit: bool,
pub write_audit: bool,
pub discoverable: i32,
pub alias: Vec<String>,
pub description: String,
}Fields§
§name: StringThe name of the database to create.
create_in_parent_id: StringOptional - the id of the folder resource in which to create the database. If omitted, the callers home folder is used.
encrypted: boolSet to encrypt the database. The encryption key will be generated by the server, the internal Volt server uses the root volt key.
read_audit: boolSet to audit all SELECT database operations.
write_audit: boolSet to audit all INSERT, UPDATE, and DELETE database operations.
discoverable: i32The discovery mode of the underlying Volt resource.
alias: Vec<String>Alias(es) that can be used to refer to the database rather than the id. Each alias must be unique to the Volt, this is enforced by the API. No format restrictions are currently applied to alias, but this may change in future, for the time being it makes sense to stick to alphanumeric characters and ‘_’ or ‘-’.
description: StringOptional description of the database.
Implementations§
Source§impl CreateDatabaseRequest
impl CreateDatabaseRequest
Sourcepub fn discoverable(&self) -> DiscoveryMode
pub fn discoverable(&self) -> DiscoveryMode
Returns the enum value of discoverable, or the default if the field is set to an invalid enum value.
Sourcepub fn set_discoverable(&mut self, value: DiscoveryMode)
pub fn set_discoverable(&mut self, value: DiscoveryMode)
Sets discoverable to the provided enum value.
Trait Implementations§
Source§impl Clone for CreateDatabaseRequest
impl Clone for CreateDatabaseRequest
Source§fn clone(&self) -> CreateDatabaseRequest
fn clone(&self) -> CreateDatabaseRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateDatabaseRequest
impl Debug for CreateDatabaseRequest
Source§impl Default for CreateDatabaseRequest
impl Default for CreateDatabaseRequest
Source§impl<'de> Deserialize<'de> for CreateDatabaseRequest
impl<'de> Deserialize<'de> for CreateDatabaseRequest
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>,
Source§impl Hash for CreateDatabaseRequest
impl Hash for CreateDatabaseRequest
Source§impl Message for CreateDatabaseRequest
impl Message for CreateDatabaseRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl PartialEq for CreateDatabaseRequest
impl PartialEq for CreateDatabaseRequest
Source§impl Serialize for CreateDatabaseRequest
impl Serialize for CreateDatabaseRequest
impl Eq for CreateDatabaseRequest
impl StructuralPartialEq for CreateDatabaseRequest
Auto Trait Implementations§
impl Freeze for CreateDatabaseRequest
impl RefUnwindSafe for CreateDatabaseRequest
impl Send for CreateDatabaseRequest
impl Sync for CreateDatabaseRequest
impl Unpin for CreateDatabaseRequest
impl UnwindSafe for CreateDatabaseRequest
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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