Struct move_ts::idl_module::IDLModuleGenerator
source · [−]pub struct IDLModuleGenerator<'info>(pub &'info IDLModule);Tuple Fields
0: &'info IDLModuleImplementations
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_entrypoints(&self, ctx: &CodegenContext<'_>) -> Result<String>
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