pub struct ProtectionDefinition {
pub branch: Box<ProtectionBranch>,
}Fields§
§branch: Box<ProtectionBranch>Implementations§
Source§impl ProtectionDefinition
impl ProtectionDefinition
pub fn new(branch: ProtectionBranch) -> ProtectionDefinition
Trait Implementations§
Source§impl Clone for ProtectionDefinition
impl Clone for ProtectionDefinition
Source§fn clone(&self) -> ProtectionDefinition
fn clone(&self) -> ProtectionDefinition
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 ProtectionDefinition
impl Debug for ProtectionDefinition
Source§impl Default for ProtectionDefinition
impl Default for ProtectionDefinition
Source§fn default() -> ProtectionDefinition
fn default() -> ProtectionDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtectionDefinition
impl<'de> Deserialize<'de> for ProtectionDefinition
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 ProtectionDefinition
impl PartialEq for ProtectionDefinition
Source§impl Serialize for ProtectionDefinition
impl Serialize for ProtectionDefinition
impl StructuralPartialEq for ProtectionDefinition
Auto Trait Implementations§
impl Freeze for ProtectionDefinition
impl RefUnwindSafe for ProtectionDefinition
impl Send for ProtectionDefinition
impl Sync for ProtectionDefinition
impl Unpin for ProtectionDefinition
impl UnwindSafe for ProtectionDefinition
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