#[non_exhaustive]pub struct AutoStopConfigBuilder { /* private fields */ }Expand description
A builder for AutoStopConfig.
Implementations§
source§impl AutoStopConfigBuilder
 
impl AutoStopConfigBuilder
sourcepub fn enabled(self, input: bool) -> Self
 
pub fn enabled(self, input: bool) -> Self
Enables the application to automatically stop after a certain amount of time being idle. Defaults to true.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
 
pub fn set_enabled(self, input: Option<bool>) -> Self
Enables the application to automatically stop after a certain amount of time being idle. Defaults to true.
sourcepub fn get_enabled(&self) -> &Option<bool>
 
pub fn get_enabled(&self) -> &Option<bool>
Enables the application to automatically stop after a certain amount of time being idle. Defaults to true.
sourcepub fn idle_timeout_minutes(self, input: i32) -> Self
 
pub fn idle_timeout_minutes(self, input: i32) -> Self
The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes.
sourcepub fn set_idle_timeout_minutes(self, input: Option<i32>) -> Self
 
pub fn set_idle_timeout_minutes(self, input: Option<i32>) -> Self
The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes.
sourcepub fn get_idle_timeout_minutes(&self) -> &Option<i32>
 
pub fn get_idle_timeout_minutes(&self) -> &Option<i32>
The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes.
sourcepub fn build(self) -> AutoStopConfig
 
pub fn build(self) -> AutoStopConfig
Consumes the builder and constructs a AutoStopConfig.
Trait Implementations§
source§impl Clone for AutoStopConfigBuilder
 
impl Clone for AutoStopConfigBuilder
source§fn clone(&self) -> AutoStopConfigBuilder
 
fn clone(&self) -> AutoStopConfigBuilder
Returns a copy 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 AutoStopConfigBuilder
 
impl Debug for AutoStopConfigBuilder
source§impl Default for AutoStopConfigBuilder
 
impl Default for AutoStopConfigBuilder
source§fn default() -> AutoStopConfigBuilder
 
fn default() -> AutoStopConfigBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AutoStopConfigBuilder
 
impl PartialEq for AutoStopConfigBuilder
source§fn eq(&self, other: &AutoStopConfigBuilder) -> bool
 
fn eq(&self, other: &AutoStopConfigBuilder) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AutoStopConfigBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AutoStopConfigBuilder
impl Send for AutoStopConfigBuilder
impl Sync for AutoStopConfigBuilder
impl Unpin for AutoStopConfigBuilder
impl UnwindSafe for AutoStopConfigBuilder
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
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>
Creates a shared type from an unshared type.