pub struct ServerProtection {
pub delete: bool,
pub rebuild: bool,
}Expand description
ServerProtection : Protection configuration for the Server.
Fields§
§delete: boolIf true, prevents the Server from being deleted.
rebuild: boolIf true, prevents the Server from being rebuilt.
Implementations§
Source§impl ServerProtection
impl ServerProtection
Sourcepub fn new(delete: bool, rebuild: bool) -> ServerProtection
pub fn new(delete: bool, rebuild: bool) -> ServerProtection
Protection configuration for the Server.
Trait Implementations§
Source§impl Clone for ServerProtection
impl Clone for ServerProtection
Source§fn clone(&self) -> ServerProtection
fn clone(&self) -> ServerProtection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerProtection
impl Debug for ServerProtection
Source§impl Default for ServerProtection
impl Default for ServerProtection
Source§fn default() -> ServerProtection
fn default() -> ServerProtection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerProtection
impl<'de> Deserialize<'de> for ServerProtection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ServerProtection
impl PartialEq for ServerProtection
Source§fn eq(&self, other: &ServerProtection) -> bool
fn eq(&self, other: &ServerProtection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServerProtection
impl Serialize for ServerProtection
impl StructuralPartialEq for ServerProtection
Auto Trait Implementations§
impl Freeze for ServerProtection
impl RefUnwindSafe for ServerProtection
impl Send for ServerProtection
impl Sync for ServerProtection
impl Unpin for ServerProtection
impl UnsafeUnpin for ServerProtection
impl UnwindSafe for ServerProtection
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