pub struct IncomingRequestBuilder { /* private fields */ }Expand description
Thin builder for IncomingRequest.
The base request shape is the wire envelope; idempotency and caller scope are
optional per-surface decorations. Keeping those defaults here avoids every
REST / gRPC / raw WS / MCP adapter spelling out None independently.
Implementations§
Source§impl IncomingRequestBuilder
impl IncomingRequestBuilder
pub fn with_transport(self, transport: RequestTransport) -> Self
pub fn with_idempotency_key(self, idempotency_key: Option<String>) -> Self
pub fn with_caller_scope( self, caller_allowed_acc_ids: Option<Arc<HashSet<u64>>>, caller_key_id: Option<String>, ) -> Self
pub fn with_auth_setup_admission( self, caller_has_auth_setup_scope: bool, caller_is_loopback: bool, caller_legacy_local_mode: bool, ) -> Self
pub fn build(self) -> IncomingRequest
Trait Implementations§
Source§impl Debug for IncomingRequestBuilder
impl Debug for IncomingRequestBuilder
Source§impl From<IncomingRequestBuilder> for IncomingRequest
impl From<IncomingRequestBuilder> for IncomingRequest
Source§fn from(builder: IncomingRequestBuilder) -> Self
fn from(builder: IncomingRequestBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for IncomingRequestBuilder
impl RefUnwindSafe for IncomingRequestBuilder
impl Send for IncomingRequestBuilder
impl Sync for IncomingRequestBuilder
impl Unpin for IncomingRequestBuilder
impl UnsafeUnpin for IncomingRequestBuilder
impl UnwindSafe for IncomingRequestBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more