pub struct Function {
pub name: String,
pub parameters: Vec<(String, String)>,
pub return_type: String,
pub async: bool,
pub can_fail: bool,
}
Expand description
A function as parsed from get_api_info()
.
Fields§
§name: String
§parameters: Vec<(String, String)>
§return_type: String
§async: bool
§can_fail: bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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