pub struct SemanticParameter {
pub name: String,
pub ty: Option<String>,
pub receiver: bool,
pub default: Option<String>,
pub variadic: bool,
}Expand description
One function/method parameter in structured form.
Fields§
§name: String§ty: Option<String>§receiver: bool&self / self receiver parameters.
default: Option<String>§variadic: boolTrait Implementations§
Source§impl Clone for SemanticParameter
impl Clone for SemanticParameter
Source§impl Debug for SemanticParameter
impl Debug for SemanticParameter
Source§impl<'de> Deserialize<'de> for SemanticParameter
impl<'de> Deserialize<'de> for SemanticParameter
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 JsonSchema for SemanticParameter
impl JsonSchema for SemanticParameter
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SemanticParameter
impl PartialEq for SemanticParameter
Source§impl Serialize for SemanticParameter
impl Serialize for SemanticParameter
impl StructuralPartialEq for SemanticParameter
Auto Trait Implementations§
impl Freeze for SemanticParameter
impl RefUnwindSafe for SemanticParameter
impl Send for SemanticParameter
impl Sync for SemanticParameter
impl Unpin for SemanticParameter
impl UnsafeUnpin for SemanticParameter
impl UnwindSafe for SemanticParameter
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