pub struct Function {
pub id: TokenStream,
pub ice_id: String,
pub return_type: FunctionReturn,
pub arguments: Vec<FunctionArgument>,
pub throws: FunctionThrows,
/* private fields */
}
Fields§
§id: TokenStream
§ice_id: String
§return_type: FunctionReturn
§arguments: Vec<FunctionArgument>
§throws: FunctionThrows
Implementations§
Source§impl Function
impl Function
pub fn empty() -> Function
pub fn set_idempotent(&mut self)
pub fn add_argument(&mut self, arg: FunctionArgument)
pub fn generate_decl(&self) -> Result<TokenStream, Box<dyn Error>>
pub fn generate_server_decl(&self) -> Result<TokenStream, Box<dyn Error>>
pub fn generate_impl(&self) -> Result<TokenStream, Box<dyn Error>>
pub fn generate_server_handler(&self) -> Result<TokenStream, Box<dyn Error>>
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