pub struct MaintenanceConfig { /* private fields */ }Expand description
Configuration for MaintenancePlugin.
Implementations§
Source§impl MaintenanceConfig
Fluent builder helpers for MaintenanceConfig.
impl MaintenanceConfig
Fluent builder helpers for MaintenanceConfig.
Sourcepub fn with_initial_mode(self, mode: MaintenanceMode) -> Self
pub fn with_initial_mode(self, mode: MaintenanceMode) -> Self
Sourcepub fn with_exempt_paths<I, S>(self, paths: I) -> Self
pub fn with_exempt_paths<I, S>(self, paths: I) -> Self
Sourcepub fn with_exempt_prefixes<I, S>(self, prefixes: I) -> Self
pub fn with_exempt_prefixes<I, S>(self, prefixes: I) -> Self
Sourcepub fn with_bypass_tokens<H, I, S>(self, header_name: H, tokens: I) -> Self
pub fn with_bypass_tokens<H, I, S>(self, header_name: H, tokens: I) -> Self
Sourcepub fn with_retry_after_secs(self, secs: Option<u64>) -> Self
pub fn with_retry_after_secs(self, secs: Option<u64>) -> Self
Sourcepub fn with_bodies<C, B1, B2>(
self,
content_type: C,
maintenance_body: B1,
read_only_body: B2,
) -> Self
pub fn with_bodies<C, B1, B2>( self, content_type: C, maintenance_body: B1, read_only_body: B2, ) -> Self
Source§impl MaintenanceConfig
impl MaintenanceConfig
pub fn get_initial_mode(&self) -> MaintenanceMode
pub fn get_mut_initial_mode(&mut self) -> &mut MaintenanceMode
pub fn set_initial_mode(&mut self, val: MaintenanceMode) -> &mut Self
pub fn get_exempt_paths(&self) -> &Vec<String>
pub fn get_mut_exempt_paths(&mut self) -> &mut Vec<String>
pub fn set_exempt_paths(&mut self, val: Vec<String>) -> &mut Self
pub fn get_exempt_prefixes(&self) -> &Vec<String>
pub fn get_mut_exempt_prefixes(&mut self) -> &mut Vec<String>
pub fn set_exempt_prefixes(&mut self, val: Vec<String>) -> &mut Self
pub fn get_bypass_header(&self) -> &String
pub fn get_mut_bypass_header(&mut self) -> &mut String
pub fn set_bypass_header(&mut self, val: String) -> &mut Self
pub fn get_bypass_tokens(&self) -> &Vec<String>
pub fn get_mut_bypass_tokens(&mut self) -> &mut Vec<String>
pub fn set_bypass_tokens(&mut self, val: Vec<String>) -> &mut Self
pub fn get_status(&self) -> HttpStatus
pub fn get_mut_status(&mut self) -> &mut HttpStatus
pub fn set_status(&mut self, val: HttpStatus) -> &mut Self
pub fn get_retry_after_secs(&self) -> Option<u64>
pub fn try_get_retry_after_secs(&self) -> Option<u64>
pub fn get_mut_retry_after_secs(&mut self) -> &mut Option<u64>
pub fn set_retry_after_secs(&mut self, val: Option<u64>) -> &mut Self
pub fn get_content_type(&self) -> &String
pub fn get_mut_content_type(&mut self) -> &mut String
pub fn set_content_type(&mut self, val: String) -> &mut Self
pub fn get_maintenance_body(&self) -> &Vec<u8> ⓘ
pub fn get_mut_maintenance_body(&mut self) -> &mut Vec<u8> ⓘ
pub fn set_maintenance_body(&mut self, val: Vec<u8>) -> &mut Self
pub fn get_read_only_body(&self) -> &Vec<u8> ⓘ
pub fn get_mut_read_only_body(&mut self) -> &mut Vec<u8> ⓘ
pub fn set_read_only_body(&mut self, val: Vec<u8>) -> &mut Self
Trait Implementations§
Source§impl Clone for MaintenanceConfig
impl Clone for MaintenanceConfig
Source§impl Debug for MaintenanceConfig
impl Debug for MaintenanceConfig
Source§impl Default for MaintenanceConfig
Default construction for MaintenanceConfig.
impl Default for MaintenanceConfig
Default construction for MaintenanceConfig.
Source§fn default() -> Self
fn default() -> Self
Builds an active default MaintenanceConfig with JSON 503 wire templates.
§Returns
Self- Default configuration.
impl Eq for MaintenanceConfig
Source§impl PartialEq for MaintenanceConfig
impl PartialEq for MaintenanceConfig
impl StructuralPartialEq for MaintenanceConfig
Auto Trait Implementations§
impl Forget for MaintenanceConfig
impl Freeze for MaintenanceConfig
impl Move for MaintenanceConfig
impl RefUnwindSafe for MaintenanceConfig
impl Send for MaintenanceConfigwhere
RawVecInner: Send,
impl Sync for MaintenanceConfigwhere
RawVecInner: Sync,
impl Unpin for MaintenanceConfig
impl UnsafeUnpin for MaintenanceConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for MaintenanceConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.