Struct move_ts::idl_module::IDLModuleGenerator
source · [−]pub struct IDLModuleGenerator<'info> {
pub module: &'info IDLModule,
pub script_fns: Vec<ScriptFunctionType<'info>>,
}
Fields
module: &'info IDLModule
script_fns: Vec<ScriptFunctionType<'info>>
Implementations
sourceimpl<'info> IDLModuleGenerator<'info>
impl<'info> IDLModuleGenerator<'info>
pub fn new(module: &'info IDLModule) -> Self
pub fn generate_module_doc(&self) -> String
pub fn has_entrypoints(&self) -> bool
pub fn generate_entrypoint_bodies(
&self,
ctx: &CodegenContext<'_>
) -> Result<CodeText>
pub fn generate_entrypoint_module(
&self,
ctx: &CodegenContext<'_>
) -> Result<CodeText>
pub fn generate_idl_module(&self) -> Result<CodeText>
pub fn generate_errors_module(&self) -> Result<Option<CodeText>>
pub fn generate_entry_payloads_module(
&self,
ctx: &CodegenContext<'_>
) -> Result<CodeText>
pub fn generate_entry_names_module(
&self,
ctx: &CodegenContext<'_>
) -> Result<CodeText>
Auto Trait Implementations
impl<'info> RefUnwindSafe for IDLModuleGenerator<'info>
impl<'info> Send for IDLModuleGenerator<'info>
impl<'info> Sync for IDLModuleGenerator<'info>
impl<'info> Unpin for IDLModuleGenerator<'info>
impl<'info> UnwindSafe for IDLModuleGenerator<'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