pub struct FunctionConfig {
pub imports: Vec<String>,
pub limits: Option<HandlerLimits>,
pub env: BTreeMap<String, String>,
pub runtime: Runtime,
pub quota: FunctionQuota,
pub webhook: Option<WebhookConfig>,
pub invoke_targets: Vec<String>,
}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.
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.
Trait Implementations§
Source§impl Clone for FunctionConfig
impl Clone for FunctionConfig
Source§fn clone(&self) -> FunctionConfig
fn clone(&self) -> FunctionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FunctionConfig
impl Debug for FunctionConfig
Source§impl Default for FunctionConfig
impl Default for FunctionConfig
Source§fn default() -> FunctionConfig
fn default() -> FunctionConfig
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
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,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.