Struct move_ts::script_function::ScriptFunctionType
source · [−]pub struct ScriptFunctionType<'info> { /* private fields */ }
Implementations
sourceimpl<'info> ScriptFunctionType<'info>
impl<'info> ScriptFunctionType<'info>
pub fn new(module: &'info IDLModule, script: &'info IDLScriptFunction) -> Self
pub fn doc_link(&self) -> String
pub fn payload(&'info self) -> ScriptFunctionPayloadStruct<'info>
pub fn generate_entry_payload_struct(
&self,
ctx: &CodegenContext<'_>
) -> Result<CodeText>
pub fn doc(&self) -> Option<String>
pub fn name(&self) -> &str
pub fn full_name(&self) -> String
pub fn payload_args_type_name(&'info self) -> String
pub fn should_render_payload_struct(&'info self) -> bool
Trait Implementations
sourceimpl<'info> Codegen for ScriptFunctionType<'info>
impl<'info> Codegen for ScriptFunctionType<'info>
fn generate_typescript(&self, ctx: &CodegenContext<'_>) -> Result<String>
Auto Trait Implementations
impl<'info> RefUnwindSafe for ScriptFunctionType<'info>
impl<'info> Send for ScriptFunctionType<'info>
impl<'info> Sync for ScriptFunctionType<'info>
impl<'info> Unpin for ScriptFunctionType<'info>
impl<'info> UnwindSafe for ScriptFunctionType<'info>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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