pub struct ActorBuilder {
pub schema: Arc<Schema>,
pub canister: Canister,
}Expand description
ActorBuilder
Fields§
§schema: Arc<Schema>§canister: CanisterImplementations§
Source§impl ActorBuilder
impl ActorBuilder
Sourcepub const fn new(schema: Arc<Schema>, canister: Canister) -> Self
pub const fn new(schema: Arc<Schema>, canister: Canister) -> Self
Create an actor builder for a specific canister.
Sourcepub fn generate(self) -> TokenStream
pub fn generate(self) -> TokenStream
Generate the full actor module (db/metrics/query glue).
Sourcepub fn get_stores(&self) -> Vec<(String, Store)>
pub fn get_stores(&self) -> Vec<(String, Store)>
All stores belonging to the current canister, keyed by path.
Sourcepub fn get_entities(&self) -> Vec<(String, Entity)>
pub fn get_entities(&self) -> Vec<(String, Entity)>
All entities attached to the current canister, keyed by path.
Auto Trait Implementations§
impl Freeze for ActorBuilder
impl RefUnwindSafe for ActorBuilder
impl Send for ActorBuilder
impl Sync for ActorBuilder
impl Unpin for ActorBuilder
impl UnwindSafe for ActorBuilder
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