pub struct BodyOwnerRouter;Available on crate feature
hub only.Expand description
An OpenRouter that reads country_code and party_id out of the request body.
This covers the common case: every client-owned object carries the party that owns it.
Trait Implementations§
Source§impl Debug for BodyOwnerRouter
impl Debug for BodyOwnerRouter
Source§impl Default for BodyOwnerRouter
impl Default for BodyOwnerRouter
Source§fn default() -> BodyOwnerRouter
fn default() -> BodyOwnerRouter
Returns the “default value” for a type. Read more
Source§impl OpenRouter for BodyOwnerRouter
impl OpenRouter for BodyOwnerRouter
Source§fn destination(&self, request: &Forwardable) -> Option<PartyRef>
fn destination(&self, request: &Forwardable) -> Option<PartyRef>
The party this request should be routed to, or
None to give up with 4001.Auto Trait Implementations§
impl Freeze for BodyOwnerRouter
impl RefUnwindSafe for BodyOwnerRouter
impl Send for BodyOwnerRouter
impl Sync for BodyOwnerRouter
impl Unpin for BodyOwnerRouter
impl UnsafeUnpin for BodyOwnerRouter
impl UnwindSafe for BodyOwnerRouter
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