pub struct Parameter<Pty> {
pub ty: Pty,
pub name: String,
}
Fields§
§ty: Pty
§name: String
using string because its the name of parameter, not a value
Trait Implementations§
Source§impl<'de, Pty> Deserialize<'de> for Parameter<Pty>where
Pty: Deserialize<'de>,
impl<'de, Pty> Deserialize<'de> for Parameter<Pty>where
Pty: Deserialize<'de>,
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<Pty> Freeze for Parameter<Pty>where
Pty: Freeze,
impl<Pty> RefUnwindSafe for Parameter<Pty>where
Pty: RefUnwindSafe,
impl<Pty> Send for Parameter<Pty>where
Pty: Send,
impl<Pty> Sync for Parameter<Pty>where
Pty: Sync,
impl<Pty> Unpin for Parameter<Pty>where
Pty: Unpin,
impl<Pty> UnwindSafe for Parameter<Pty>where
Pty: UnwindSafe,
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