pub struct ModuleManifest {Show 20 fields
pub name: String,
pub required_capabilities: Vec<Capability>,
pub optional_capabilities: Vec<Capability>,
pub config_namespace: Option<String>,
pub capability_contracts: Vec<CapabilityContract>,
pub module_dependencies: Vec<ModuleDependency>,
pub core_service_dependencies: Vec<CoreServiceDependency>,
pub migrations: Vec<MigrationContract>,
pub route_surfaces: Vec<RouteSurface>,
pub jobs: Vec<JobContract>,
pub event_subscriptions: Vec<EventSubscription>,
pub integration_points: Vec<IntegrationPoint>,
pub behaviors: Vec<ModuleBehavior>,
pub extension_slots: Vec<ExtensionSlotDescriptor>,
pub admin_resources: Vec<AdminResourceContribution>,
pub http_surfaces: Vec<HttpSurfaceContribution>,
pub data_repositories: Vec<DataRepositoryContribution>,
pub search_contributions: Vec<SearchIndexContribution>,
pub report_definitions: Vec<ReportDefinition>,
pub bulk_operations: Vec<BulkOperationDefinition>,
}Fields§
§name: String§required_capabilities: Vec<Capability>§optional_capabilities: Vec<Capability>§config_namespace: Option<String>§capability_contracts: Vec<CapabilityContract>§module_dependencies: Vec<ModuleDependency>§core_service_dependencies: Vec<CoreServiceDependency>§migrations: Vec<MigrationContract>§route_surfaces: Vec<RouteSurface>§jobs: Vec<JobContract>§event_subscriptions: Vec<EventSubscription>§integration_points: Vec<IntegrationPoint>§behaviors: Vec<ModuleBehavior>§extension_slots: Vec<ExtensionSlotDescriptor>§admin_resources: Vec<AdminResourceContribution>§http_surfaces: Vec<HttpSurfaceContribution>§data_repositories: Vec<DataRepositoryContribution>§search_contributions: Vec<SearchIndexContribution>§report_definitions: Vec<ReportDefinition>§bulk_operations: Vec<BulkOperationDefinition>Implementations§
Source§impl ModuleManifest
impl ModuleManifest
pub fn new(name: impl Into<String>) -> Self
pub fn with_required_capabilities(self, capabilities: Vec<Capability>) -> Self
pub fn with_optional_capabilities(self, capabilities: Vec<Capability>) -> Self
pub fn with_config_namespace(self, config_namespace: impl Into<String>) -> Self
pub fn with_capability_contracts( self, contracts: Vec<CapabilityContract>, ) -> Self
pub fn with_module_dependencies( self, dependencies: Vec<ModuleDependency>, ) -> Self
pub fn with_core_service_dependencies( self, dependencies: Vec<CoreServiceDependency>, ) -> Self
pub fn with_migrations(self, migrations: Vec<MigrationContract>) -> Self
pub fn with_route_surfaces(self, routes: Vec<RouteSurface>) -> Self
pub fn with_jobs(self, jobs: Vec<JobContract>) -> Self
pub fn with_event_subscriptions( self, subscriptions: Vec<EventSubscription>, ) -> Self
pub fn with_integration_points( self, integrations: Vec<IntegrationPoint>, ) -> Self
pub fn with_behaviors(self, behaviors: Vec<ModuleBehavior>) -> Self
pub fn with_extension_slots( self, extension_slots: Vec<ExtensionSlotDescriptor>, ) -> Self
pub fn with_admin_resources( self, admin_resources: Vec<AdminResourceContribution>, ) -> Self
pub fn with_http_surfaces( self, http_surfaces: Vec<HttpSurfaceContribution>, ) -> Self
pub fn with_data_repositories( self, data_repositories: Vec<DataRepositoryContribution>, ) -> Self
pub fn with_search_contributions( self, search_contributions: Vec<SearchIndexContribution>, ) -> Self
pub fn with_report_definitions( self, report_definitions: Vec<ReportDefinition>, ) -> Self
pub fn with_bulk_operations( self, bulk_operations: Vec<BulkOperationDefinition>, ) -> Self
Trait Implementations§
Source§impl Clone for ModuleManifest
impl Clone for ModuleManifest
Source§fn clone(&self) -> ModuleManifest
fn clone(&self) -> ModuleManifest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleManifest
impl Debug for ModuleManifest
Source§impl PartialEq for ModuleManifest
impl PartialEq for ModuleManifest
impl Eq for ModuleManifest
impl StructuralPartialEq for ModuleManifest
Auto Trait Implementations§
impl Freeze for ModuleManifest
impl RefUnwindSafe for ModuleManifest
impl Send for ModuleManifest
impl Sync for ModuleManifest
impl Unpin for ModuleManifest
impl UnsafeUnpin for ModuleManifest
impl UnwindSafe for ModuleManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more