#[non_exhaustive]pub struct FeatureSettings {
pub split_health_checks: bool,
pub use_container_optimized_os: bool,
/* private fields */
}
Expand description
The feature specific settings to be used in the application. These define behaviors that are user configurable.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.split_health_checks: bool
Boolean value indicating if split health checks should be used instead of the legacy health checks. At an app.yaml level, this means defaulting to ‘readiness_check’ and ‘liveness_check’ values instead of ‘health_check’ ones. Once the legacy ‘health_check’ behavior is deprecated, and this value is always true, this setting can be removed.
use_container_optimized_os: bool
If true, use Container-Optimized OS base image for VMs, rather than a base Debian image.
Implementations§
Source§impl FeatureSettings
impl FeatureSettings
pub fn new() -> Self
Sourcepub fn set_split_health_checks<T: Into<bool>>(self, v: T) -> Self
pub fn set_split_health_checks<T: Into<bool>>(self, v: T) -> Self
Sets the value of split_health_checks.
Sourcepub fn set_use_container_optimized_os<T: Into<bool>>(self, v: T) -> Self
pub fn set_use_container_optimized_os<T: Into<bool>>(self, v: T) -> Self
Sets the value of use_container_optimized_os.
Trait Implementations§
Source§impl Clone for FeatureSettings
impl Clone for FeatureSettings
Source§fn clone(&self) -> FeatureSettings
fn clone(&self) -> FeatureSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FeatureSettings
impl Debug for FeatureSettings
Source§impl Default for FeatureSettings
impl Default for FeatureSettings
Source§fn default() -> FeatureSettings
fn default() -> FeatureSettings
Returns the “default value” for a type. Read more
Source§impl Message for FeatureSettings
impl Message for FeatureSettings
Source§impl PartialEq for FeatureSettings
impl PartialEq for FeatureSettings
impl StructuralPartialEq for FeatureSettings
Auto Trait Implementations§
impl Freeze for FeatureSettings
impl RefUnwindSafe for FeatureSettings
impl Send for FeatureSettings
impl Sync for FeatureSettings
impl Unpin for FeatureSettings
impl UnwindSafe for FeatureSettings
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
Mutably borrows from an owned value. Read more