pub struct FunctionConfig {
pub imports: Vec<String>,
pub limits: Option<HandlerLimits>,
pub env: BTreeMap<String, String>,
pub secrets: BTreeMap<String, String>,
pub runtime: Runtime,
pub quota: FunctionQuota,
pub webhook: Option<WebhookConfig>,
pub invoke_targets: Vec<String>,
pub tenancy: Option<Tenancy>,
pub token_claims: Option<HandlerGraphqlTokenClaims>,
}Expand description
Fields§
§imports: Vec<String>Requested host capabilities (interface names).
limits: Option<HandlerLimits>Optional resource limits (mem / timeout / fuel).
env: BTreeMap<String, String>Static, non-secret environment.
secrets: BTreeMap<String, String>Env-var name → secret reference (ENV_VAR → HOST_ENV), resolved
server-side from the serve env at instantiation; the value is a
reference, never stored in the manifest or the control-plane store
(mirrors a site handler’s [handlers].secrets).
runtime: RuntimeExecution substrate (default wasm).
quota: FunctionQuotaUsage quota (FA-4). Absent / all-None ⇒ unlimited.
webhook: Option<WebhookConfig>Signed inbound-webhook ingress (FA-5). Absent ⇒ no webhook endpoint.
invoke_targets: Vec<String>Function-to-function invoke allowlist (FI): the target names this function
may call through the invoke capability. Each entry may use * wildcards
(* = any sibling, img-* = a family, resize = one literal). Deny by
default: empty ⇒ the function cannot invoke anything, even if it imports
invoke. Only consulted when imports contains invoke.
tenancy: Option<Tenancy>In-site tenancy decision for this function’s sql/orm access (Dimension 0). Absent ⇒
undeclared (refused under the multi-tenant posture, treated as Disabled — plain
queries — under single-tenant/dev). Scoped opts into host-injected row scoping.
token_claims: Option<HandlerGraphqlTokenClaims>JWKS/issuer config verifying the app bearer for a crate::tenancy::TenantSource::Token
tenant source when this function is invoked over HTTP (the function analogue of a site’s
[handlers.graphql.data].claims_from_token). Absent ⇒ the token source can’t verify, so it
resolves no value (fail-closed); the domain/none sources don’t need it.
Trait Implementations§
Source§impl Clone for FunctionConfig
impl Clone for FunctionConfig
Source§fn clone(&self) -> FunctionConfig
fn clone(&self) -> FunctionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FunctionConfig
impl Debug for FunctionConfig
Source§impl Default for FunctionConfig
impl Default for FunctionConfig
Source§fn default() -> FunctionConfig
fn default() -> FunctionConfig
Source§impl<'de> Deserialize<'de> for FunctionConfigwhere
FunctionConfig: Default,
impl<'de> Deserialize<'de> for FunctionConfigwhere
FunctionConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FunctionConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FunctionConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for FunctionConfig
Source§impl PartialEq for FunctionConfig
impl PartialEq for FunctionConfig
Source§impl Serialize for FunctionConfig
impl Serialize for FunctionConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for FunctionConfig
Auto Trait Implementations§
impl Freeze for FunctionConfig
impl RefUnwindSafe for FunctionConfig
impl Send for FunctionConfig
impl Sync for FunctionConfig
impl Unpin for FunctionConfig
impl UnsafeUnpin for FunctionConfig
impl UnwindSafe for FunctionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.