pub struct TypedParameter {
pub name: String,
pub type_: Type,
}
Expand description
A parameter with a type.
Fields§
§name: String
The name of the parameter.
type_: Type
The type of the parameter. If not specified, the type is object
.
Implementations§
Source§impl TypedParameter
impl TypedParameter
Sourcepub fn parse_typed_parameters(
input: TokenStream<'_>,
) -> IResult<TokenStream<'_>, Vec<TypedParameter>, ParserError>
pub fn parse_typed_parameters( input: TokenStream<'_>, ) -> IResult<TokenStream<'_>, Vec<TypedParameter>, ParserError>
Parse a list of typed parameters from a token stream.
Trait Implementations§
Source§impl Clone for TypedParameter
impl Clone for TypedParameter
Source§fn clone(&self) -> TypedParameter
fn clone(&self) -> TypedParameter
Returns a duplicate 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 TypedParameter
impl Debug for TypedParameter
Source§impl<'de> Deserialize<'de> for TypedParameter
impl<'de> Deserialize<'de> for TypedParameter
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 Hash for TypedParameter
impl Hash for TypedParameter
Source§impl Ord for TypedParameter
impl Ord for TypedParameter
Source§fn cmp(&self, other: &TypedParameter) -> Ordering
fn cmp(&self, other: &TypedParameter) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TypedParameter
impl PartialEq for TypedParameter
Source§impl PartialOrd for TypedParameter
impl PartialOrd for TypedParameter
Source§impl Serialize for TypedParameter
impl Serialize for TypedParameter
impl Eq for TypedParameter
impl StructuralPartialEq for TypedParameter
Auto Trait Implementations§
impl Freeze for TypedParameter
impl RefUnwindSafe for TypedParameter
impl Send for TypedParameter
impl Sync for TypedParameter
impl Unpin for TypedParameter
impl UnwindSafe for TypedParameter
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