pub struct RuntimePlan {Show 40 fields
pub config: PlatformConfig,
pub auth_package_name: String,
pub auth_package: AuthModelPackageSelection,
pub approved_outbound_http_endpoints: BTreeMap<String, Url>,
pub shared_backend_scope: String,
pub shared_state_root: PathBuf,
pub cache_topology: CacheTopology,
pub cache_planner: CachePlanner,
pub i18n: I18nRuntimeServices,
pub seo: SeoRuntimeServices,
pub browser: BrowserSecurityServices,
pub cli: CliRuntimeServices,
pub data: DataRuntimeServices,
pub jobs: JobsRuntimeServices,
pub observability: ObservabilityRuntimeServices,
pub http: HttpRuntimePlan,
pub handlers: BTreeMap<String, HandlerDefinition>,
pub storage_planner: StoragePlanner,
pub storefront_catalog: StorefrontCatalog,
pub theme_asset_manifest: Option<ActiveAssetManifest>,
pub template: TemplateRuntimeServices,
pub tls: TlsRuntimeServices,
pub wasm: WasmRuntimeServices,
pub services: Vec<ServiceDescriptor>,
pub modules: Vec<ModuleManifest>,
pub install_migrations: MigrationPlan,
pub extension_registry: ExtensionRegistry,
pub registered_extension_slots: Vec<RegisteredExtensionSlot>,
pub installed_extensions: Vec<InstalledExtensionSummary>,
pub linked_customer_plugins: Vec<LinkedCustomerPluginSummary>,
pub module_jobs: Vec<RegisteredModuleJob>,
pub module_event_subscriptions: Vec<RegisteredEventSubscription>,
pub module_data_repositories: Vec<RegisteredDataRepository>,
pub module_search_contributions: Vec<RegisteredSearchContribution>,
pub module_report_definitions: Vec<RegisteredReportDefinition>,
pub module_bulk_operations: Vec<RegisteredBulkOperation>,
pub registered_runtime_jobs: Vec<RuntimeJobDefinition>,
pub registered_runtime_event_subscriptions: Vec<RuntimeEventSubscriptionDefinition>,
pub jobs_domain: JobsDomain,
pub ops_catalog: OpsCatalog,
/* private fields */
}Fields§
§config: PlatformConfig§auth_package_name: String§auth_package: AuthModelPackageSelection§approved_outbound_http_endpoints: BTreeMap<String, Url>§cache_topology: CacheTopology§cache_planner: CachePlanner§i18n: I18nRuntimeServices§seo: SeoRuntimeServices§browser: BrowserSecurityServices§cli: CliRuntimeServices§data: DataRuntimeServices§jobs: JobsRuntimeServices§observability: ObservabilityRuntimeServices§http: HttpRuntimePlan§handlers: BTreeMap<String, HandlerDefinition>§storage_planner: StoragePlanner§storefront_catalog: StorefrontCatalog§theme_asset_manifest: Option<ActiveAssetManifest>§template: TemplateRuntimeServices§tls: TlsRuntimeServices§wasm: WasmRuntimeServices§services: Vec<ServiceDescriptor>§modules: Vec<ModuleManifest>§install_migrations: MigrationPlan§extension_registry: ExtensionRegistry§registered_extension_slots: Vec<RegisteredExtensionSlot>§installed_extensions: Vec<InstalledExtensionSummary>§linked_customer_plugins: Vec<LinkedCustomerPluginSummary>§module_jobs: Vec<RegisteredModuleJob>§module_event_subscriptions: Vec<RegisteredEventSubscription>§module_data_repositories: Vec<RegisteredDataRepository>§module_search_contributions: Vec<RegisteredSearchContribution>§module_report_definitions: Vec<RegisteredReportDefinition>§module_bulk_operations: Vec<RegisteredBulkOperation>§registered_runtime_jobs: Vec<RuntimeJobDefinition>§registered_runtime_event_subscriptions: Vec<RuntimeEventSubscriptionDefinition>§jobs_domain: JobsDomain§ops_catalog: OpsCatalogImplementations§
Source§impl RuntimePlan
impl RuntimePlan
pub fn execute_request( &self, request: RequestInput, cookie_secret: &[u8], csrf_secret: &[u8], ) -> Result<RequestExecution, RequestExecutionError>
pub fn execute_browser_request( &self, browser: &mut BrowserHost, request: RequestInput, cookie_secret: &[u8], csrf_secret: &[u8], now: BrowserInstant, ) -> Result<RequestExecution, RequestExecutionError>
Source§impl RuntimePlan
impl RuntimePlan
pub fn auth_package(&self) -> &dyn AuthModelPackage
pub fn approved_outbound_http_endpoints(&self) -> &BTreeMap<String, Url>
pub fn tenant_id(&self) -> i64
pub fn jobs_host( &self, scheduler_node_id: impl Into<String>, ) -> Result<JobsHost, RuntimeJobsError>
pub fn ops_host( &self, scheduler_node_id: impl Into<String>, ) -> Result<OpsHost, RuntimeOpsError>
pub fn search_host( &self, scheduler_node_id: impl Into<String>, ) -> Result<SearchHost, RuntimeSearchError>
pub fn cache_host(&self) -> Result<CacheHost, RuntimeCacheError>
pub fn tls_host(&self) -> Result<TlsHost, RuntimeTlsError>
pub fn tls_host_with_secret_resolver<R: SecretResolver>( &self, resolver: &R, ) -> Result<TlsHost, RuntimeTlsError>
pub fn tls_validation_host_with_secret_resolver<R: SecretResolver>( &self, resolver: &R, ) -> Result<TlsHost, RuntimeTlsError>
pub fn storage_host(&self) -> StorageHost
pub fn storage_host_with_object_store( &self, object_store: Option<ObjectStoreClientConfig>, ) -> StorageHost
pub fn wasm_host(&self) -> WasmHost
pub fn wasm_host_with_secret_resolver<R: SecretResolver>( &self, resolver: &R, ) -> Result<WasmHost, RuntimeServerError>
pub fn wasm_secret_values<R: SecretResolver>( &self, resolver: &R, ) -> Result<BTreeMap<String, String>, RuntimeServerError>
pub fn object_store_client_config<R: SecretResolver>( &self, resolver: &R, ) -> Result<Option<ObjectStoreClientConfig>, RuntimeServerError>
pub fn server_host<R: SecretResolver>( &self, resolver: &R, cookie_secret: &[u8], csrf_secret: &[u8], ) -> Result<HttpServerHost, RuntimeServerError>
pub fn serve_from_env( self, bind_override: Option<String>, ) -> Result<(), RuntimeBootstrapError>
Source§impl RuntimePlan
impl RuntimePlan
pub fn render_page_response( &self, execution: &RequestExecution, page: &PageResponse, extra_metadata: Option<&TypedMetadata>, ) -> Result<String, RuntimeRenderError>
pub fn render_fragment_response( &self, execution: &RequestExecution, fragment: &FragmentResponse, ) -> Result<String, RuntimeRenderError>
Trait Implementations§
Source§impl Clone for RuntimePlan
impl Clone for RuntimePlan
Source§fn clone(&self) -> RuntimePlan
fn clone(&self) -> RuntimePlan
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 moreAuto Trait Implementations§
impl Freeze for RuntimePlan
impl !RefUnwindSafe for RuntimePlan
impl Send for RuntimePlan
impl Sync for RuntimePlan
impl Unpin for RuntimePlan
impl UnsafeUnpin for RuntimePlan
impl !UnwindSafe for RuntimePlan
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<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