pub struct RuntimeModule {
pub metadata: InMemoryMetadataStore,
/* private fields */
}Fields§
§metadata: InMemoryMetadataStoreImplementations§
Source§impl RuntimeModule
impl RuntimeModule
pub fn new() -> Self
pub fn entity<T: TeaqlEntity>(self) -> Self
pub fn entity_with_behavior<T, B>(self, behavior: B) -> Selfwhere
T: TeaqlEntity,
B: RepositoryBehavior + 'static,
pub fn descriptor(self, descriptor: EntityDescriptor) -> Self
pub fn behavior( self, entity: impl Into<String>, behavior: impl RepositoryBehavior + 'static, ) -> Self
pub fn checker(self, checker: impl Checker + 'static) -> Self
pub fn event_sink(self, sink: impl RawAuditEventSink + 'static) -> Self
pub fn language(self, language: Language) -> Self
pub fn initial_graph(self, graph: GraphNode) -> Self
pub fn initial_graphs(self, graphs: impl IntoIterator<Item = GraphNode>) -> Self
pub fn apply_to(self, ctx: &mut UserContext)
pub fn into_context(self) -> UserContext
Trait Implementations§
Source§impl Clone for RuntimeModule
impl Clone for RuntimeModule
Source§fn clone(&self) -> RuntimeModule
fn clone(&self) -> RuntimeModule
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 moreSource§impl Default for RuntimeModule
impl Default for RuntimeModule
Source§fn default() -> RuntimeModule
fn default() -> RuntimeModule
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeModule
impl !UnwindSafe for RuntimeModule
impl Freeze for RuntimeModule
impl Send for RuntimeModule
impl Sync for RuntimeModule
impl Unpin for RuntimeModule
impl UnsafeUnpin for RuntimeModule
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