pub struct ModuleManifestBuilder { /* private fields */ }Expand description
Fluent builder for ModuleManifest. Reusable by every loading source.
Implementations§
Source§impl ModuleManifestBuilder
impl ModuleManifestBuilder
pub fn summary(self, summary: impl Into<String>) -> ModuleManifestBuilder
Sourcepub fn story_display(
self,
story_display: Vec<StoryDisplayDescriptor>,
) -> ModuleManifestBuilder
pub fn story_display( self, story_display: Vec<StoryDisplayDescriptor>, ) -> ModuleManifestBuilder
Attach console story-display metadata.
Sourcepub fn capabilities(self, capabilities: Vec<String>) -> ModuleManifestBuilder
pub fn capabilities(self, capabilities: Vec<String>) -> ModuleManifestBuilder
Attach declared capabilities.
Sourcepub fn requires(
self,
requirements: Vec<ModuleRequirement>,
) -> ModuleManifestBuilder
pub fn requires( self, requirements: Vec<ModuleRequirement>, ) -> ModuleManifestBuilder
Attach required Modules.
pub fn config(self, config: ModuleConfigContract) -> ModuleManifestBuilder
pub fn migrations( self, migrations: Vec<ModuleMigrationDeclaration>, ) -> ModuleManifestBuilder
Sourcepub fn http_routes(self, routes: Vec<ModuleHttpRoute>) -> ModuleManifestBuilder
pub fn http_routes(self, routes: Vec<ModuleHttpRoute>) -> ModuleManifestBuilder
Attach declared module-owned HTTP routes.
Sourcepub fn runtime(self, runtime: RuntimeSurface) -> ModuleManifestBuilder
pub fn runtime(self, runtime: RuntimeSurface) -> ModuleManifestBuilder
Attach runtime declarations.
Sourcepub fn events(self, events: EventSurface) -> ModuleManifestBuilder
pub fn events(self, events: EventSurface) -> ModuleManifestBuilder
Attach event handler declarations.
Sourcepub fn admin(self, schema: AdminSchema) -> ModuleManifestBuilder
pub fn admin(self, schema: AdminSchema) -> ModuleManifestBuilder
Attach a schema-driven admin surface.
Sourcepub fn declarative_admin(
self,
surface: AdminDeclarativeSurface,
) -> ModuleManifestBuilder
pub fn declarative_admin( self, surface: AdminDeclarativeSurface, ) -> ModuleManifestBuilder
Attach a host-rendered custom admin surface declaration.
Sourcepub fn embedded_admin(
self,
surface: AdminEmbeddedSurface,
) -> ModuleManifestBuilder
pub fn embedded_admin( self, surface: AdminEmbeddedSurface, ) -> ModuleManifestBuilder
Attach a sandboxed module-owned admin surface declaration.
Sourcepub fn lifecycle(self, lifecycle: LifecycleSurface) -> ModuleManifestBuilder
pub fn lifecycle(self, lifecycle: LifecycleSurface) -> ModuleManifestBuilder
Attach lifecycle declarations.
Sourcepub fn console(self, console: Vec<ConsoleSurface>) -> ModuleManifestBuilder
pub fn console(self, console: Vec<ConsoleSurface>) -> ModuleManifestBuilder
Attach trusted Runtime Console frontend surface declarations.
Sourcepub fn console_slots(
self,
console_slots: Vec<ConsoleSlot>,
) -> ModuleManifestBuilder
pub fn console_slots( self, console_slots: Vec<ConsoleSlot>, ) -> ModuleManifestBuilder
Attach Runtime Console extension slot declarations.
Sourcepub fn console_contributions(
self,
console_contributions: Vec<ConsoleContribution>,
) -> ModuleManifestBuilder
pub fn console_contributions( self, console_contributions: Vec<ConsoleContribution>, ) -> ModuleManifestBuilder
Attach trusted Runtime Console slot contribution declarations.
Sourcepub fn build(self) -> ModuleManifest
pub fn build(self) -> ModuleManifest
Finish building.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleManifestBuilder
impl RefUnwindSafe for ModuleManifestBuilder
impl Send for ModuleManifestBuilder
impl Sync for ModuleManifestBuilder
impl Unpin for ModuleManifestBuilder
impl UnsafeUnpin for ModuleManifestBuilder
impl UnwindSafe for ModuleManifestBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request