pub struct CustomRouteDefinition {
pub method: String,
pub path: String,
pub handler: String,
pub job: Option<JobConfig>,
pub posture: Option<RoutePosture>,
pub forward_auth: bool,
}Fields§
§method: String§path: String§handler: String§job: Option<JobConfig>When present, the HTTP route accepts the request, persists a
wasm_jobs row, publishes to JetStream, and returns 202 Accepted
with {job_id}. The handler executes asynchronously on a worker
with no inline 30s wall.
posture: Option<RoutePosture>Who may call this route. None marks a manifest built before route
postures existed: the platform runs it in legacy mode (best-effort auth,
no enforcement) and warns. Some — always emitted by the current SDK —
makes the platform enforce the declared posture.
forward_auth: boolPass the caller’s authorization, cookie and proxy-authorization
headers into the guest. Without it they are stripped once the tenant’s
tenant_binding policy is enforced.
Trait Implementations§
Source§impl Clone for CustomRouteDefinition
impl Clone for CustomRouteDefinition
Source§impl Debug for CustomRouteDefinition
impl Debug for CustomRouteDefinition
Source§impl<'de> Deserialize<'de> for CustomRouteDefinition
impl<'de> Deserialize<'de> for CustomRouteDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CustomRouteDefinition
impl RefUnwindSafe for CustomRouteDefinition
impl Send for CustomRouteDefinition
impl Sync for CustomRouteDefinition
impl Unpin for CustomRouteDefinition
impl UnsafeUnpin for CustomRouteDefinition
impl UnwindSafe for CustomRouteDefinition
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