pub struct FunctionSpecification {
pub name: String,
pub description: Option<String>,
pub parameters: Option<Parameters>,
}
Fields§
§name: String
§description: Option<String>
§parameters: Option<Parameters>
Implementations§
source§impl FunctionSpecification
impl FunctionSpecification
pub fn new( name: String, description: Option<String>, parameters: Option<Parameters> ) -> FunctionSpecification
Trait Implementations§
source§impl Clone for FunctionSpecification
impl Clone for FunctionSpecification
source§fn clone(&self) -> FunctionSpecification
fn clone(&self) -> FunctionSpecification
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FunctionSpecification
impl Debug for FunctionSpecification
source§impl<'de> Deserialize<'de> for FunctionSpecification
impl<'de> Deserialize<'de> for FunctionSpecification
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
source§impl Display for FunctionSpecification
impl Display for FunctionSpecification
source§impl PartialEq<FunctionSpecification> for FunctionSpecification
impl PartialEq<FunctionSpecification> for FunctionSpecification
source§fn eq(&self, other: &FunctionSpecification) -> bool
fn eq(&self, other: &FunctionSpecification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FunctionSpecification
impl Serialize for FunctionSpecification
impl StructuralPartialEq for FunctionSpecification
Auto Trait Implementations§
impl RefUnwindSafe for FunctionSpecification
impl Send for FunctionSpecification
impl Sync for FunctionSpecification
impl Unpin for FunctionSpecification
impl UnwindSafe for FunctionSpecification
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