SubscriptionDatabaseSpec

Struct SubscriptionDatabaseSpec 

Source
pub struct SubscriptionDatabaseSpec {
Show 17 fields pub name: String, pub protocol: String, pub memory_limit_in_gb: Option<f64>, pub dataset_size_in_gb: Option<f64>, pub support_oss_cluster_api: Option<bool>, pub data_persistence: Option<String>, pub replication: Option<bool>, pub throughput_measurement: Option<DatabaseThroughputSpec>, pub local_throughput_measurement: Option<Vec<LocalThroughput>>, pub modules: Option<Vec<DatabaseModuleSpec>>, pub quantity: Option<i32>, pub average_item_size_in_bytes: Option<i64>, pub resp_version: Option<String>, pub redis_version: Option<String>, pub sharding_type: Option<String>, pub query_performance_factor: Option<String>, pub extra: Value,
}
Expand description

One or more database specification(s) to create in this subscription.

Fields§

§name: String

Name of the database. Database name is limited to 40 characters or less and must include only letters, digits, and hyphens (‘-’). It must start with a letter and end with a letter or digit.

§protocol: String

Optional. Database protocol. Only set to ‘memcached’ if you have a legacy application. Default: ‘redis’

§memory_limit_in_gb: Option<f64>

Optional. Total memory in GB, including replication and other overhead. You cannot set both datasetSizeInGb and totalMemoryInGb.

§dataset_size_in_gb: Option<f64>

Optional. The maximum amount of data in the dataset for this database in GB. You cannot set both datasetSizeInGb and totalMemoryInGb. If ‘replication’ is ‘true’, the database’s total memory will be twice as large as the datasetSizeInGb.If ‘replication’ is false, the database’s total memory will be the datasetSizeInGb value.

§support_oss_cluster_api: Option<bool>

Optional. Support Redis OSS Cluster API. Default: ‘false’

§data_persistence: Option<String>

Optional. Type and rate of data persistence in persistent storage. Default: ‘none’

§replication: Option<bool>

Optional. Databases replication. Default: ‘true’

§throughput_measurement: Option<DatabaseThroughputSpec>§local_throughput_measurement: Option<Vec<LocalThroughput>>

Optional. Expected throughput per region for an Active-Active database. Default: 1000 read and write ops/sec for each region

§modules: Option<Vec<DatabaseModuleSpec>>

Optional. Redis advanced capabilities (also known as modules) to be provisioned in the database. Use GET /database-modules to get a list of available advanced capabilities.

§quantity: Option<i32>

Optional. Number of databases that will be created with these settings. Default: 1

§average_item_size_in_bytes: Option<i64>

Optional. Relevant only to ram-and-flash (also known as Auto Tiering) subscriptions. Estimated average size in bytes of the items stored in the database. Default: 1000

§resp_version: Option<String>

Optional. Redis Serialization Protocol version. Must be compatible with Redis version.

§redis_version: Option<String>

Optional. If specified, redisVersion defines the Redis database version. If omitted, the Redis version will be set to the default version (available in ‘GET /subscriptions/redis-versions’)

§sharding_type: Option<String>

Optional. Database Hashing policy.

§query_performance_factor: Option<String>

Optional. The query performance factor adds extra compute power specifically for search and query databases. You can increase your queries per second by the selected factor.

§extra: Value

Additional fields from the API

Trait Implementations§

Source§

impl Clone for SubscriptionDatabaseSpec

Source§

fn clone(&self) -> SubscriptionDatabaseSpec

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SubscriptionDatabaseSpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SubscriptionDatabaseSpec

Source§

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 Serialize for SubscriptionDatabaseSpec

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,