pub struct MaintenanceMode {
pub enabled: bool,
pub audience: MaintenanceAudience,
pub impact: MaintenanceImpact,
pub bypass_token: Option<String>,
pub allowed_background_work: BTreeSet<BackgroundWorkClass>,
}Fields§
§enabled: bool§audience: MaintenanceAudience§impact: MaintenanceImpact§bypass_token: Option<String>§allowed_background_work: BTreeSet<BackgroundWorkClass>Implementations§
Source§impl MaintenanceMode
impl MaintenanceMode
pub fn disabled() -> Self
pub fn blocks_request( &self, customer_app: Option<&CustomerAppId>, method_is_mutating: bool, bypass_token: Option<&str>, ) -> bool
Trait Implementations§
Source§impl Clone for MaintenanceMode
impl Clone for MaintenanceMode
Source§fn clone(&self) -> MaintenanceMode
fn clone(&self) -> MaintenanceMode
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 MaintenanceMode
impl Debug for MaintenanceMode
Source§impl PartialEq for MaintenanceMode
impl PartialEq for MaintenanceMode
impl Eq for MaintenanceMode
impl StructuralPartialEq for MaintenanceMode
Auto Trait Implementations§
impl Freeze for MaintenanceMode
impl RefUnwindSafe for MaintenanceMode
impl Send for MaintenanceMode
impl Sync for MaintenanceMode
impl Unpin for MaintenanceMode
impl UnsafeUnpin for MaintenanceMode
impl UnwindSafe for MaintenanceMode
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> 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.