pub struct Arg {
pub name: String,
pub ty: ArgType,
pub interface: Option<String>,
pub enum: Option<String>,
pub allow_null: bool,
pub summary: Option<String>,
pub description: Option<String>,
}
Fields§
§name: String
§ty: ArgType
§interface: Option<String>
§enum: Option<String>
§allow_null: bool
§summary: Option<String>
§description: Option<String>
Implementations§
Source§impl Arg
impl Arg
pub fn to_enum_name(&self) -> Option<(Option<String>, String)>
pub fn find_protocol(&self, pairs: &[Pair]) -> Option<Pair>
pub fn to_rust_type_token(&self, pair: &Pair) -> TokenStream
pub fn is_return_option(&self) -> bool
pub fn to_caller(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Arg
impl<'de> Deserialize<'de> for Arg
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 Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnwindSafe for Arg
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