Skip to main content

FixedDatabase

Struct FixedDatabase 

Source
pub struct FixedDatabase {
Show 42 fields pub database_id: Option<i32>, pub name: Option<String>, pub protocol: Option<String>, pub provider: Option<String>, pub region: Option<String>, pub redis_version: Option<String>, pub redis_version_compliance: Option<String>, pub resp_version: Option<String>, pub status: Option<String>, pub plan_memory_limit: Option<f64>, pub plan_dataset_size: Option<f64>, pub memory_limit_measurement_unit: Option<String>, pub memory_limit_in_gb: Option<f64>, pub dataset_size_in_gb: Option<f64>, pub memory_used_in_mb: Option<f64>, pub network_monthly_usage_in_byte: Option<f64>, pub memory_storage: Option<String>, pub redis_flex: Option<bool>, pub support_oss_cluster_api: Option<bool>, pub use_external_endpoint_for_oss_cluster_api: Option<bool>, pub data_persistence: Option<String>, pub replication: Option<bool>, pub data_eviction_policy: Option<String>, pub activated_on: Option<String>, pub last_modified: Option<String>, pub public_endpoint: Option<String>, pub private_endpoint: Option<String>, pub dynamic_endpoints: Option<DynamicEndpoints>, pub enable_default_user: Option<bool>, pub enable_tls: Option<bool>, pub password: Option<String>, pub source_ips: Option<Vec<String>>, pub ssl_client_authentication: Option<bool>, pub tls_client_authentication: Option<bool>, pub replica: Option<ReplicaOfSpec>, pub clustering_enabled: Option<bool>, pub regex_rules: Option<Vec<String>>, pub hashing_policy: Option<String>, pub modules: Option<Vec<DatabaseModuleSpec>>, pub alerts: Option<Vec<DatabaseAlertSpec>>, pub backup: Option<DatabaseBackupStatus>, pub links: Option<Vec<Link>>,
}
Expand description

FixedDatabase

Fields§

§database_id: Option<i32>

Database identifier.

§name: Option<String>

Database name.

§protocol: Option<String>

Database protocol (e.g. "redis", "stack", "memcached").

§provider: Option<String>

Cloud provider (e.g. "AWS", "GCP", "Azure").

§region: Option<String>

Cloud region where the database is hosted.

§redis_version: Option<String>

Redis version currently running on the database.

§redis_version_compliance: Option<String>

Redis version compliance level (e.g. "latest").

§resp_version: Option<String>

Redis Serialization Protocol (RESP) version in use.

§status: Option<String>

Current database status (e.g. "active", "pending").

§plan_memory_limit: Option<f64>

Memory limit from the plan, in the plan’s measurement unit.

§plan_dataset_size: Option<f64>

Dataset size from the plan, in the plan’s measurement unit.

§memory_limit_measurement_unit: Option<String>

Measurement unit for memory limits (e.g. "GB", "MB").

§memory_limit_in_gb: Option<f64>

Total memory limit in GB, including replication and other overhead.

§dataset_size_in_gb: Option<f64>

Maximum dataset size for this database in GB.

§memory_used_in_mb: Option<f64>

Currently used memory, in MB.

§network_monthly_usage_in_byte: Option<f64>

Network usage so far this month, in bytes.

§memory_storage: Option<String>

Memory storage type (e.g. "ram", "ram-and-flash").

§redis_flex: Option<bool>

Whether Redis Flex (auto-tiering) is enabled.

§support_oss_cluster_api: Option<bool>

Whether Redis OSS Cluster API support is enabled.

§use_external_endpoint_for_oss_cluster_api: Option<bool>

Whether the external endpoint is used for OSS Cluster API.

§data_persistence: Option<String>

Data persistence type (e.g. "none", "aof-every-1-second", "snapshot-every-1-hour").

§replication: Option<bool>

Whether replication is enabled.

§data_eviction_policy: Option<String>

Data eviction policy (e.g. "allkeys-lru", "noeviction").

§activated_on: Option<String>

Timestamp when the database was activated.

§last_modified: Option<String>

Timestamp when the database was last modified.

§public_endpoint: Option<String>

Public endpoint hostname/port for connecting from the internet.

§private_endpoint: Option<String>

Private endpoint hostname/port for connecting from inside the VPC.

§dynamic_endpoints: Option<DynamicEndpoints>

Additional dynamic endpoints. See DynamicEndpoints.

§enable_default_user: Option<bool>

Whether default Redis user is enabled

§enable_tls: Option<bool>

Whether TLS is enabled for connections

§password: Option<String>

Database password (masked in responses)

§source_ips: Option<Vec<String>>

List of source IP addresses or subnet masks allowed to connect

§ssl_client_authentication: Option<bool>

Whether SSL client authentication is enabled

§tls_client_authentication: Option<bool>

Whether TLS client authentication is enabled

§replica: Option<ReplicaOfSpec>

Replica of configuration

§clustering_enabled: Option<bool>

Whether database clustering is enabled

§regex_rules: Option<Vec<String>>

Regex rules for custom hashing policy

§hashing_policy: Option<String>

Hashing policy for clustering

§modules: Option<Vec<DatabaseModuleSpec>>

Redis modules/capabilities enabled on this database

§alerts: Option<Vec<DatabaseAlertSpec>>

Database alert configurations

§backup: Option<DatabaseBackupStatus>

Backup configuration and status

§links: Option<Vec<Link>>

HATEOAS links

Trait Implementations§

Source§

impl Clone for FixedDatabase

Source§

fn clone(&self) -> FixedDatabase

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for FixedDatabase

Source§

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

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

impl<'de> Deserialize<'de> for FixedDatabase

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 FixedDatabase

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>,