#[non_exhaustive]pub struct OptionGroupOptionBuilder { /* private fields */ }
Expand description
A builder for OptionGroupOption
.
Implementations§
Source§impl OptionGroupOptionBuilder
impl OptionGroupOptionBuilder
Sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the option.
Sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the option.
Sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the option.
Sourcepub fn engine_name(self, input: impl Into<String>) -> Self
pub fn engine_name(self, input: impl Into<String>) -> Self
The name of the engine that this option can be applied to.
Sourcepub fn set_engine_name(self, input: Option<String>) -> Self
pub fn set_engine_name(self, input: Option<String>) -> Self
The name of the engine that this option can be applied to.
Sourcepub fn get_engine_name(&self) -> &Option<String>
pub fn get_engine_name(&self) -> &Option<String>
The name of the engine that this option can be applied to.
Sourcepub fn major_engine_version(self, input: impl Into<String>) -> Self
pub fn major_engine_version(self, input: impl Into<String>) -> Self
Indicates the major engine version that the option is available for.
Sourcepub fn set_major_engine_version(self, input: Option<String>) -> Self
pub fn set_major_engine_version(self, input: Option<String>) -> Self
Indicates the major engine version that the option is available for.
Sourcepub fn get_major_engine_version(&self) -> &Option<String>
pub fn get_major_engine_version(&self) -> &Option<String>
Indicates the major engine version that the option is available for.
Sourcepub fn minimum_required_minor_engine_version(
self,
input: impl Into<String>,
) -> Self
pub fn minimum_required_minor_engine_version( self, input: impl Into<String>, ) -> Self
The minimum required engine version for the option to be applied.
Sourcepub fn set_minimum_required_minor_engine_version(
self,
input: Option<String>,
) -> Self
pub fn set_minimum_required_minor_engine_version( self, input: Option<String>, ) -> Self
The minimum required engine version for the option to be applied.
Sourcepub fn get_minimum_required_minor_engine_version(&self) -> &Option<String>
pub fn get_minimum_required_minor_engine_version(&self) -> &Option<String>
The minimum required engine version for the option to be applied.
Sourcepub fn port_required(self, input: bool) -> Self
pub fn port_required(self, input: bool) -> Self
Indicates whether the option requires a port.
Sourcepub fn set_port_required(self, input: Option<bool>) -> Self
pub fn set_port_required(self, input: Option<bool>) -> Self
Indicates whether the option requires a port.
Sourcepub fn get_port_required(&self) -> &Option<bool>
pub fn get_port_required(&self) -> &Option<bool>
Indicates whether the option requires a port.
Sourcepub fn default_port(self, input: i32) -> Self
pub fn default_port(self, input: i32) -> Self
If the option requires a port, specifies the default port for the option.
Sourcepub fn set_default_port(self, input: Option<i32>) -> Self
pub fn set_default_port(self, input: Option<i32>) -> Self
If the option requires a port, specifies the default port for the option.
Sourcepub fn get_default_port(&self) -> &Option<i32>
pub fn get_default_port(&self) -> &Option<i32>
If the option requires a port, specifies the default port for the option.
Sourcepub fn options_depended_on(self, input: impl Into<String>) -> Self
pub fn options_depended_on(self, input: impl Into<String>) -> Self
Appends an item to options_depended_on
.
To override the contents of this collection use set_options_depended_on
.
The options that are prerequisites for this option.
Sourcepub fn set_options_depended_on(self, input: Option<Vec<String>>) -> Self
pub fn set_options_depended_on(self, input: Option<Vec<String>>) -> Self
The options that are prerequisites for this option.
Sourcepub fn get_options_depended_on(&self) -> &Option<Vec<String>>
pub fn get_options_depended_on(&self) -> &Option<Vec<String>>
The options that are prerequisites for this option.
Sourcepub fn options_conflicts_with(self, input: impl Into<String>) -> Self
pub fn options_conflicts_with(self, input: impl Into<String>) -> Self
Appends an item to options_conflicts_with
.
To override the contents of this collection use set_options_conflicts_with
.
The options that conflict with this option.
Sourcepub fn set_options_conflicts_with(self, input: Option<Vec<String>>) -> Self
pub fn set_options_conflicts_with(self, input: Option<Vec<String>>) -> Self
The options that conflict with this option.
Sourcepub fn get_options_conflicts_with(&self) -> &Option<Vec<String>>
pub fn get_options_conflicts_with(&self) -> &Option<Vec<String>>
The options that conflict with this option.
Sourcepub fn persistent(self, input: bool) -> Self
pub fn persistent(self, input: bool) -> Self
Persistent options can't be removed from an option group while DB instances are associated with the option group. If you disassociate all DB instances from the option group, your can remove the persistent option from the option group.
Sourcepub fn set_persistent(self, input: Option<bool>) -> Self
pub fn set_persistent(self, input: Option<bool>) -> Self
Persistent options can't be removed from an option group while DB instances are associated with the option group. If you disassociate all DB instances from the option group, your can remove the persistent option from the option group.
Sourcepub fn get_persistent(&self) -> &Option<bool>
pub fn get_persistent(&self) -> &Option<bool>
Persistent options can't be removed from an option group while DB instances are associated with the option group. If you disassociate all DB instances from the option group, your can remove the persistent option from the option group.
Sourcepub fn permanent(self, input: bool) -> Self
pub fn permanent(self, input: bool) -> Self
Permanent options can never be removed from an option group. An option group containing a permanent option can't be removed from a DB instance.
Sourcepub fn set_permanent(self, input: Option<bool>) -> Self
pub fn set_permanent(self, input: Option<bool>) -> Self
Permanent options can never be removed from an option group. An option group containing a permanent option can't be removed from a DB instance.
Sourcepub fn get_permanent(&self) -> &Option<bool>
pub fn get_permanent(&self) -> &Option<bool>
Permanent options can never be removed from an option group. An option group containing a permanent option can't be removed from a DB instance.
Sourcepub fn requires_auto_minor_engine_version_upgrade(self, input: bool) -> Self
pub fn requires_auto_minor_engine_version_upgrade(self, input: bool) -> Self
If true, you must enable the Auto Minor Version Upgrade setting for your DB instance before you can use this option. You can enable Auto Minor Version Upgrade when you first create your DB instance, or by modifying your DB instance later.
Sourcepub fn set_requires_auto_minor_engine_version_upgrade(
self,
input: Option<bool>,
) -> Self
pub fn set_requires_auto_minor_engine_version_upgrade( self, input: Option<bool>, ) -> Self
If true, you must enable the Auto Minor Version Upgrade setting for your DB instance before you can use this option. You can enable Auto Minor Version Upgrade when you first create your DB instance, or by modifying your DB instance later.
Sourcepub fn get_requires_auto_minor_engine_version_upgrade(&self) -> &Option<bool>
pub fn get_requires_auto_minor_engine_version_upgrade(&self) -> &Option<bool>
If true, you must enable the Auto Minor Version Upgrade setting for your DB instance before you can use this option. You can enable Auto Minor Version Upgrade when you first create your DB instance, or by modifying your DB instance later.
Sourcepub fn vpc_only(self, input: bool) -> Self
pub fn vpc_only(self, input: bool) -> Self
If true, you can only use this option with a DB instance that is in a VPC.
Sourcepub fn set_vpc_only(self, input: Option<bool>) -> Self
pub fn set_vpc_only(self, input: Option<bool>) -> Self
If true, you can only use this option with a DB instance that is in a VPC.
Sourcepub fn get_vpc_only(&self) -> &Option<bool>
pub fn get_vpc_only(&self) -> &Option<bool>
If true, you can only use this option with a DB instance that is in a VPC.
Sourcepub fn supports_option_version_downgrade(self, input: bool) -> Self
pub fn supports_option_version_downgrade(self, input: bool) -> Self
If true, you can change the option to an earlier version of the option. This only applies to options that have different versions available.
Sourcepub fn set_supports_option_version_downgrade(self, input: Option<bool>) -> Self
pub fn set_supports_option_version_downgrade(self, input: Option<bool>) -> Self
If true, you can change the option to an earlier version of the option. This only applies to options that have different versions available.
Sourcepub fn get_supports_option_version_downgrade(&self) -> &Option<bool>
pub fn get_supports_option_version_downgrade(&self) -> &Option<bool>
If true, you can change the option to an earlier version of the option. This only applies to options that have different versions available.
Sourcepub fn option_group_option_settings(
self,
input: OptionGroupOptionSetting,
) -> Self
pub fn option_group_option_settings( self, input: OptionGroupOptionSetting, ) -> Self
Appends an item to option_group_option_settings
.
To override the contents of this collection use set_option_group_option_settings
.
The option settings that are available (and the default value) for each option in an option group.
Sourcepub fn set_option_group_option_settings(
self,
input: Option<Vec<OptionGroupOptionSetting>>,
) -> Self
pub fn set_option_group_option_settings( self, input: Option<Vec<OptionGroupOptionSetting>>, ) -> Self
The option settings that are available (and the default value) for each option in an option group.
Sourcepub fn get_option_group_option_settings(
&self,
) -> &Option<Vec<OptionGroupOptionSetting>>
pub fn get_option_group_option_settings( &self, ) -> &Option<Vec<OptionGroupOptionSetting>>
The option settings that are available (and the default value) for each option in an option group.
Sourcepub fn option_group_option_versions(self, input: OptionVersion) -> Self
pub fn option_group_option_versions(self, input: OptionVersion) -> Self
Appends an item to option_group_option_versions
.
To override the contents of this collection use set_option_group_option_versions
.
The versions that are available for the option.
Sourcepub fn set_option_group_option_versions(
self,
input: Option<Vec<OptionVersion>>,
) -> Self
pub fn set_option_group_option_versions( self, input: Option<Vec<OptionVersion>>, ) -> Self
The versions that are available for the option.
Sourcepub fn get_option_group_option_versions(&self) -> &Option<Vec<OptionVersion>>
pub fn get_option_group_option_versions(&self) -> &Option<Vec<OptionVersion>>
The versions that are available for the option.
Sourcepub fn copyable_cross_account(self, input: bool) -> Self
pub fn copyable_cross_account(self, input: bool) -> Self
Indicates whether the option can be copied across Amazon Web Services accounts.
Sourcepub fn set_copyable_cross_account(self, input: Option<bool>) -> Self
pub fn set_copyable_cross_account(self, input: Option<bool>) -> Self
Indicates whether the option can be copied across Amazon Web Services accounts.
Sourcepub fn get_copyable_cross_account(&self) -> &Option<bool>
pub fn get_copyable_cross_account(&self) -> &Option<bool>
Indicates whether the option can be copied across Amazon Web Services accounts.
Sourcepub fn build(self) -> OptionGroupOption
pub fn build(self) -> OptionGroupOption
Consumes the builder and constructs a OptionGroupOption
.
Trait Implementations§
Source§impl Clone for OptionGroupOptionBuilder
impl Clone for OptionGroupOptionBuilder
Source§fn clone(&self) -> OptionGroupOptionBuilder
fn clone(&self) -> OptionGroupOptionBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OptionGroupOptionBuilder
impl Debug for OptionGroupOptionBuilder
Source§impl Default for OptionGroupOptionBuilder
impl Default for OptionGroupOptionBuilder
Source§fn default() -> OptionGroupOptionBuilder
fn default() -> OptionGroupOptionBuilder
Source§impl PartialEq for OptionGroupOptionBuilder
impl PartialEq for OptionGroupOptionBuilder
impl StructuralPartialEq for OptionGroupOptionBuilder
Auto Trait Implementations§
impl Freeze for OptionGroupOptionBuilder
impl RefUnwindSafe for OptionGroupOptionBuilder
impl Send for OptionGroupOptionBuilder
impl Sync for OptionGroupOptionBuilder
impl Unpin for OptionGroupOptionBuilder
impl UnwindSafe for OptionGroupOptionBuilder
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);