pub struct Function {
pub type_: Function_,
pub id: Option<Box<String>>,
pub name: Option<Box<String>>,
pub parameters: Option<Vec<Parameter>>,
pub returns: Option<Box<ValidatorTypes>>,
}
Expand description
A function with a name, which might take Parameters and return a value of a certain type.
Fields§
§type_: Function_
The name of this type
id: Option<Box<String>>
The identifier for this item.
name: Option<Box<String>>
The name of the function.
parameters: Option<Vec<Parameter>>
The parameters of the function.
returns: Option<Box<ValidatorTypes>>
The return type of the function.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
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 Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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