pub struct MaxChildDepth(/* private fields */);Implementations§
Source§impl MaxChildDepth
impl MaxChildDepth
pub const SERVER_MAX: Self
pub fn new(value: u16) -> Result<Self, DomainError>
pub const fn get(self) -> u16
pub const fn effective_with(self, inherited: Self) -> Self
Trait Implementations§
Source§impl Clone for MaxChildDepth
impl Clone for MaxChildDepth
impl Copy for MaxChildDepth
Source§impl Debug for MaxChildDepth
impl Debug for MaxChildDepth
Source§impl<'de> Deserialize<'de> for MaxChildDepth
impl<'de> Deserialize<'de> for MaxChildDepth
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
impl Eq for MaxChildDepth
Source§impl From<MaxChildDepth> for ChildDepthBudget
impl From<MaxChildDepth> for ChildDepthBudget
Source§fn from(value: MaxChildDepth) -> Self
fn from(value: MaxChildDepth) -> Self
Converts to this type from the input type.
Source§impl From<MaxChildDepth> for u16
impl From<MaxChildDepth> for u16
Source§fn from(value: MaxChildDepth) -> Self
fn from(value: MaxChildDepth) -> Self
Converts to this type from the input type.
Source§impl Ord for MaxChildDepth
impl Ord for MaxChildDepth
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MaxChildDepth
impl PartialEq for MaxChildDepth
Source§impl PartialOrd for MaxChildDepth
impl PartialOrd for MaxChildDepth
Source§impl Serialize for MaxChildDepth
impl Serialize for MaxChildDepth
impl StructuralPartialEq for MaxChildDepth
Auto Trait Implementations§
impl Freeze for MaxChildDepth
impl RefUnwindSafe for MaxChildDepth
impl Send for MaxChildDepth
impl Sync for MaxChildDepth
impl Unpin for MaxChildDepth
impl UnsafeUnpin for MaxChildDepth
impl UnwindSafe for MaxChildDepth
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