pub struct ParamDecl {
pub kind: ParamKind,
pub default: Value,
pub min: Option<f64>,
pub max: Option<f64>,
pub description: Option<String>,
}Expand description
Declaration of a document-level parameter (overridable at render time).
Fields§
§kind: ParamKind§default: Value§min: Option<f64>§max: Option<f64>§description: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ParamDecl
impl<'de> Deserialize<'de> for ParamDecl
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
Auto Trait Implementations§
impl Freeze for ParamDecl
impl RefUnwindSafe for ParamDecl
impl Send for ParamDecl
impl Sync for ParamDecl
impl Unpin for ParamDecl
impl UnsafeUnpin for ParamDecl
impl UnwindSafe for ParamDecl
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