#[non_exhaustive]pub struct DbNode {Show 28 fields
pub db_node_id: Option<String>,
pub db_node_arn: Option<String>,
pub status: Option<DbNodeResourceStatus>,
pub status_reason: Option<String>,
pub additional_details: Option<String>,
pub backup_ip_id: Option<String>,
pub backup_vnic2_id: Option<String>,
pub backup_vnic_id: Option<String>,
pub cpu_core_count: Option<i32>,
pub db_node_storage_size_in_gbs: Option<i32>,
pub db_server_id: Option<String>,
pub db_system_id: Option<String>,
pub fault_domain: Option<String>,
pub host_ip_id: Option<String>,
pub hostname: Option<String>,
pub ocid: Option<String>,
pub oci_resource_anchor_name: Option<String>,
pub maintenance_type: Option<DbNodeMaintenanceType>,
pub memory_size_in_gbs: Option<i32>,
pub software_storage_size_in_gb: Option<i32>,
pub created_at: Option<DateTime>,
pub time_maintenance_window_end: Option<String>,
pub time_maintenance_window_start: Option<String>,
pub total_cpu_core_count: Option<i32>,
pub vnic2_id: Option<String>,
pub vnic_id: Option<String>,
pub private_ip_address: Option<String>,
pub floating_ip_address: Option<String>,
}
Expand description
Information about a DB node.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.db_node_id: Option<String>
The unique identifier of the DB node.
db_node_arn: Option<String>
The Amazon Resource Name (ARN) of the DB node.
status: Option<DbNodeResourceStatus>
The current status of the DB node.
status_reason: Option<String>
Additional information about the status of the DB node.
additional_details: Option<String>
Additional information about the planned maintenance.
backup_ip_id: Option<String>
The Oracle Cloud ID (OCID) of the backup IP address that's associated with the DB node.
backup_vnic2_id: Option<String>
The OCID of the second backup VNIC.
backup_vnic_id: Option<String>
The OCID of the backup VNIC.
cpu_core_count: Option<i32>
Number of CPU cores enabled on the DB node.
db_node_storage_size_in_gbs: Option<i32>
The amount of local node storage, in gigabytes (GBs), that's allocated on the DB node.
db_server_id: Option<String>
The unique identifier of the Db server that is associated with the DB node.
db_system_id: Option<String>
The OCID of the DB system.
fault_domain: Option<String>
The name of the fault domain the instance is contained in.
host_ip_id: Option<String>
The OCID of the host IP address that's associated with the DB node.
hostname: Option<String>
The host name for the DB node.
ocid: Option<String>
The OCID of the DB node.
oci_resource_anchor_name: Option<String>
The name of the OCI resource anchor for the DB node.
maintenance_type: Option<DbNodeMaintenanceType>
The type of database node maintenance. Either VMDB_REBOOT_MIGRATION
or EXADBXS_REBOOT_MIGRATION
.
memory_size_in_gbs: Option<i32>
The allocated memory in GBs on the DB node.
software_storage_size_in_gb: Option<i32>
The size (in GB) of the block storage volume allocation for the DB system.
created_at: Option<DateTime>
The date and time when the DB node was created.
time_maintenance_window_end: Option<String>
End date and time of maintenance window.
time_maintenance_window_start: Option<String>
Start date and time of maintenance window.
total_cpu_core_count: Option<i32>
The total number of CPU cores reserved on the DB node.
vnic2_id: Option<String>
The OCID of the second VNIC.
vnic_id: Option<String>
The OCID of the VNIC.
private_ip_address: Option<String>
The private IP address assigned to the DB node.
floating_ip_address: Option<String>
The floating IP address assigned to the DB node.
Implementations§
Source§impl DbNode
impl DbNode
Sourcepub fn db_node_id(&self) -> Option<&str>
pub fn db_node_id(&self) -> Option<&str>
The unique identifier of the DB node.
Sourcepub fn db_node_arn(&self) -> Option<&str>
pub fn db_node_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the DB node.
Sourcepub fn status(&self) -> Option<&DbNodeResourceStatus>
pub fn status(&self) -> Option<&DbNodeResourceStatus>
The current status of the DB node.
Sourcepub fn status_reason(&self) -> Option<&str>
pub fn status_reason(&self) -> Option<&str>
Additional information about the status of the DB node.
Sourcepub fn additional_details(&self) -> Option<&str>
pub fn additional_details(&self) -> Option<&str>
Additional information about the planned maintenance.
Sourcepub fn backup_ip_id(&self) -> Option<&str>
pub fn backup_ip_id(&self) -> Option<&str>
The Oracle Cloud ID (OCID) of the backup IP address that's associated with the DB node.
Sourcepub fn backup_vnic2_id(&self) -> Option<&str>
pub fn backup_vnic2_id(&self) -> Option<&str>
The OCID of the second backup VNIC.
Sourcepub fn backup_vnic_id(&self) -> Option<&str>
pub fn backup_vnic_id(&self) -> Option<&str>
The OCID of the backup VNIC.
Sourcepub fn cpu_core_count(&self) -> Option<i32>
pub fn cpu_core_count(&self) -> Option<i32>
Number of CPU cores enabled on the DB node.
Sourcepub fn db_node_storage_size_in_gbs(&self) -> Option<i32>
pub fn db_node_storage_size_in_gbs(&self) -> Option<i32>
The amount of local node storage, in gigabytes (GBs), that's allocated on the DB node.
Sourcepub fn db_server_id(&self) -> Option<&str>
pub fn db_server_id(&self) -> Option<&str>
The unique identifier of the Db server that is associated with the DB node.
Sourcepub fn db_system_id(&self) -> Option<&str>
pub fn db_system_id(&self) -> Option<&str>
The OCID of the DB system.
Sourcepub fn fault_domain(&self) -> Option<&str>
pub fn fault_domain(&self) -> Option<&str>
The name of the fault domain the instance is contained in.
Sourcepub fn host_ip_id(&self) -> Option<&str>
pub fn host_ip_id(&self) -> Option<&str>
The OCID of the host IP address that's associated with the DB node.
Sourcepub fn oci_resource_anchor_name(&self) -> Option<&str>
pub fn oci_resource_anchor_name(&self) -> Option<&str>
The name of the OCI resource anchor for the DB node.
Sourcepub fn maintenance_type(&self) -> Option<&DbNodeMaintenanceType>
pub fn maintenance_type(&self) -> Option<&DbNodeMaintenanceType>
The type of database node maintenance. Either VMDB_REBOOT_MIGRATION
or EXADBXS_REBOOT_MIGRATION
.
Sourcepub fn memory_size_in_gbs(&self) -> Option<i32>
pub fn memory_size_in_gbs(&self) -> Option<i32>
The allocated memory in GBs on the DB node.
Sourcepub fn software_storage_size_in_gb(&self) -> Option<i32>
pub fn software_storage_size_in_gb(&self) -> Option<i32>
The size (in GB) of the block storage volume allocation for the DB system.
Sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The date and time when the DB node was created.
Sourcepub fn time_maintenance_window_end(&self) -> Option<&str>
pub fn time_maintenance_window_end(&self) -> Option<&str>
End date and time of maintenance window.
Sourcepub fn time_maintenance_window_start(&self) -> Option<&str>
pub fn time_maintenance_window_start(&self) -> Option<&str>
Start date and time of maintenance window.
Sourcepub fn total_cpu_core_count(&self) -> Option<i32>
pub fn total_cpu_core_count(&self) -> Option<i32>
The total number of CPU cores reserved on the DB node.
Sourcepub fn private_ip_address(&self) -> Option<&str>
pub fn private_ip_address(&self) -> Option<&str>
The private IP address assigned to the DB node.
Sourcepub fn floating_ip_address(&self) -> Option<&str>
pub fn floating_ip_address(&self) -> Option<&str>
The floating IP address assigned to the DB node.
Trait Implementations§
impl StructuralPartialEq for DbNode
Auto Trait Implementations§
impl Freeze for DbNode
impl RefUnwindSafe for DbNode
impl Send for DbNode
impl Sync for DbNode
impl Unpin for DbNode
impl UnwindSafe for DbNode
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);