pub struct BoundedValueWithDefault<T> {
pub min: T,
pub max: T,
pub default: T,
}Expand description
A set of bounds and default value.
Used in the API to return bounds and defaults for optional settings.
Fields§
§min: TMinimum allowed value for this parameter.
max: TMaximum allowed value for this parameter.
default: TDefault value for this parameter.
Implementations§
Source§impl<T> BoundedValueWithDefault<T>
impl<T> BoundedValueWithDefault<T>
Trait Implementations§
Source§impl<T> Clone for BoundedValueWithDefault<T>where
T: Clone,
Implement Clone if inner type implements it.
impl<T> Clone for BoundedValueWithDefault<T>where
T: Clone,
Implement Clone if inner type implements it.
impl<T> Copy for BoundedValueWithDefault<T>where
T: Copy,
Implement Copy if inner type implements it.
Source§impl<T> Debug for BoundedValueWithDefault<T>where
T: Debug,
Implement Debug if inner type implements it.
impl<T> Debug for BoundedValueWithDefault<T>where
T: Debug,
Implement Debug if inner type implements it.
Source§impl<T> Default for BoundedValueWithDefault<T>where
T: Default,
Implement Default if inner type implements it.
impl<T> Default for BoundedValueWithDefault<T>where
T: Default,
Implement Default if inner type implements it.
Source§impl<'de, T> Deserialize<'de> for BoundedValueWithDefault<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for BoundedValueWithDefault<T>where
T: Deserialize<'de>,
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<T> Eq for BoundedValueWithDefault<T>where
T: Eq,
Auto Trait Implementations§
impl<T> Freeze for BoundedValueWithDefault<T>where
T: Freeze,
impl<T> RefUnwindSafe for BoundedValueWithDefault<T>where
T: RefUnwindSafe,
impl<T> Send for BoundedValueWithDefault<T>where
T: Send,
impl<T> Sync for BoundedValueWithDefault<T>where
T: Sync,
impl<T> Unpin for BoundedValueWithDefault<T>where
T: Unpin,
impl<T> UnsafeUnpin for BoundedValueWithDefault<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for BoundedValueWithDefault<T>where
T: UnwindSafe,
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