pub struct FuncInput {
pub kind: FuncKind,
pub default: Option<Value>,
pub description: Option<String>,
}Expand description
One declared function input.
Fields§
§kind: FuncKind§default: Option<Value>Default argument — allowed for scalar inputs only; its
presence makes the input optional at the call site. A null
default (or argument) makes substituted fields disappear from
the body node entirely — the way to feed optional op fields
whose absence means something (e.g. stroke curves).
description: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for FuncInput
impl<'de> Deserialize<'de> for FuncInput
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 FuncInput
impl RefUnwindSafe for FuncInput
impl Send for FuncInput
impl Sync for FuncInput
impl Unpin for FuncInput
impl UnsafeUnpin for FuncInput
impl UnwindSafe for FuncInput
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