pub struct Arg { /* private fields */ }Expand description
An argument
Implementations
sourceimpl Arg
impl Arg
sourcepub fn direction(&self) -> Option<&str>
pub fn direction(&self) -> Option<&str>
Return the argument direction (should be “in” or “out”), if any.
sourcepub fn annotations(&self) -> Vec<&Annotation>
pub fn annotations(&self) -> Vec<&Annotation>
Return the associated annotations.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Arg
impl<'de> Deserialize<'de> for Arg
sourcefn 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 RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnwindSafe for Arg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more