Skip to main content

RuntimePlan

Struct RuntimePlan 

Source
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>§shared_backend_scope: String§shared_state_root: PathBuf§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: OpsCatalog

Implementations§

Source§

impl RuntimePlan

Source

pub fn execute_request( &self, request: RequestInput, cookie_secret: &[u8], csrf_secret: &[u8], ) -> Result<RequestExecution, RequestExecutionError>

Source

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

Source

pub fn auth_package(&self) -> &dyn AuthModelPackage

Source

pub fn approved_outbound_http_endpoints(&self) -> &BTreeMap<String, Url>

Source

pub fn tenant_id(&self) -> i64

Source

pub fn jobs_host( &self, scheduler_node_id: impl Into<String>, ) -> Result<JobsHost, RuntimeJobsError>

Source

pub fn ops_host( &self, scheduler_node_id: impl Into<String>, ) -> Result<OpsHost, RuntimeOpsError>

Source

pub fn search_host( &self, scheduler_node_id: impl Into<String>, ) -> Result<SearchHost, RuntimeSearchError>

Source

pub fn cache_host(&self) -> Result<CacheHost, RuntimeCacheError>

Source

pub fn tls_host(&self) -> Result<TlsHost, RuntimeTlsError>

Source

pub fn tls_host_with_secret_resolver<R: SecretResolver>( &self, resolver: &R, ) -> Result<TlsHost, RuntimeTlsError>

Source

pub fn tls_validation_host_with_secret_resolver<R: SecretResolver>( &self, resolver: &R, ) -> Result<TlsHost, RuntimeTlsError>

Source

pub fn storage_host(&self) -> StorageHost

Source

pub fn storage_host_with_object_store( &self, object_store: Option<ObjectStoreClientConfig>, ) -> StorageHost

Source

pub fn wasm_host(&self) -> WasmHost

Source

pub fn wasm_host_with_secret_resolver<R: SecretResolver>( &self, resolver: &R, ) -> Result<WasmHost, RuntimeServerError>

Source

pub fn wasm_secret_values<R: SecretResolver>( &self, resolver: &R, ) -> Result<BTreeMap<String, String>, RuntimeServerError>

Source

pub fn shared_backend_clients<R: SecretResolver>( &self, resolver: &R, ) -> Result<SharedBackendClients, RuntimeServerError>

Source

pub fn object_store_client_config<R: SecretResolver>( &self, resolver: &R, ) -> Result<Option<ObjectStoreClientConfig>, RuntimeServerError>

Source

pub fn server_host<R: SecretResolver>( &self, resolver: &R, cookie_secret: &[u8], csrf_secret: &[u8], ) -> Result<HttpServerHost, RuntimeServerError>

Source

pub fn serve_from_env( self, bind_override: Option<String>, ) -> Result<(), RuntimeBootstrapError>

Source§

impl RuntimePlan

Trait Implementations§

Source§

impl Clone for RuntimePlan

Source§

fn clone(&self) -> RuntimePlan

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RuntimePlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more