pub struct AwlWorkerScaffold<'a> {
pub contract: &'a WorkerContract,
pub crate_name: &'a str,
pub document_include: &'a str,
pub document_directory: &'a DocumentRoot,
pub document_name: &'a str,
pub dependencies: &'a AionDependency,
}Expand description
What to generate: one queue’s compiled contract, plus how the emitted crate reaches the document and the SDK.
Fields§
§contract: &'a WorkerContractThe compiled worker contract — the ONE source of the schemas the
generated worker advertises.
crate_name: &'a strCargo package (and binary) name for the generated crate.
document_include: &'a strThe document’s path as src/declaration.rs must spell it for
include_str! — relative to that file, using / separators.
document_directory: &'a DocumentRootThe document’s DIRECTORY, which the emitted code uses to resolve the
document’s schema("…") imports exactly as the deploy path does.
document_name: &'a strThe document’s file name, for the generated documentation.
dependencies: &'a AionDependencyWhere the generated Cargo.toml takes the aion crates from.
Trait Implementations§
Source§impl<'a> Clone for AwlWorkerScaffold<'a>
impl<'a> Clone for AwlWorkerScaffold<'a>
Source§fn clone(&self) -> AwlWorkerScaffold<'a>
fn clone(&self) -> AwlWorkerScaffold<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for AwlWorkerScaffold<'a>
impl<'a> RefUnwindSafe for AwlWorkerScaffold<'a>
impl<'a> Send for AwlWorkerScaffold<'a>
impl<'a> Sync for AwlWorkerScaffold<'a>
impl<'a> Unpin for AwlWorkerScaffold<'a>
impl<'a> UnsafeUnpin for AwlWorkerScaffold<'a>
impl<'a> UnwindSafe for AwlWorkerScaffold<'a>
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