pub struct DispatchConfig {
pub region: String,
pub account_id: String,
pub verify_sigv4: bool,
pub iam_mode: IamMode,
pub credential_resolver: Option<Arc<dyn CredentialResolver>>,
pub policy_evaluator: Option<Arc<dyn IamPolicyEvaluator>>,
}Expand description
Configuration passed to the dispatch handler.
Fields§
§region: String§account_id: String§verify_sigv4: boolWhether to cryptographically verify SigV4 signatures on incoming
requests. Wired through from --verify-sigv4 /
FAKECLOUD_VERIFY_SIGV4. Off by default.
iam_mode: IamModeIAM policy evaluation mode. Wired through from --iam /
FAKECLOUD_IAM. Defaults to IamMode::Off. Actual evaluation is
added in a later batch; today this field is plumbed but never
consulted.
credential_resolver: Option<Arc<dyn CredentialResolver>>Resolves access key IDs to their secrets and owning principals.
Required when verify_sigv4 or iam_mode != Off. When None, both
features gracefully degrade to off-by-default behavior.
policy_evaluator: Option<Arc<dyn IamPolicyEvaluator>>Evaluates IAM identity policies for a resolved principal + action.
Required when iam_mode != Off. When None, enforcement silently
degrades to off even if iam_mode is set.
Implementations§
Trait Implementations§
Source§impl Clone for DispatchConfig
impl Clone for DispatchConfig
Source§fn clone(&self) -> DispatchConfig
fn clone(&self) -> DispatchConfig
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 DispatchConfig
impl !RefUnwindSafe for DispatchConfig
impl Send for DispatchConfig
impl Sync for DispatchConfig
impl Unpin for DispatchConfig
impl UnsafeUnpin for DispatchConfig
impl !UnwindSafe for DispatchConfig
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