pub struct ParamDecl {
pub name: SmolStr,
pub ty: PropertyType,
pub default: Option<SmolStr>,
}Expand description
A single parameter of a function or procedure signature.
Fields§
§name: SmolStrParameter name. Diagnostic-only for variadic parameters.
ty: PropertyTypeDeclared parameter type.
default: Option<SmolStr>Optional default value as a source-level literal.
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
impl Eq for ParamDecl
impl StructuralPartialEq for ParamDecl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.