pub struct OriginateRequest {
pub session_id: SessionId,
pub participant_id: ParticipantId,
pub target: String,
pub direction: Direction,
pub capabilities: CapabilityDescriptor,
pub transport: Option<Transport>,
pub context: OriginateContext,
}Fields§
§session_id: SessionId§participant_id: ParticipantId§target: String§direction: Direction§capabilities: CapabilityDescriptor§transport: Option<Transport>P6 — transport selector. When Some, the Orchestrator
dispatches the originate through the adapter registered for
this transport. When None, the “first registered adapter”
fallback applies (single-adapter deployments).
context: OriginateContextOpaque, typed options interpreted only by the selected adapter.
Implementations§
Source§impl OriginateRequest
impl OriginateRequest
Sourcepub fn new(
session_id: SessionId,
participant_id: ParticipantId,
target: impl Into<String>,
direction: Direction,
capabilities: CapabilityDescriptor,
) -> OriginateRequest
pub fn new( session_id: SessionId, participant_id: ParticipantId, target: impl Into<String>, direction: Direction, capabilities: CapabilityDescriptor, ) -> OriginateRequest
Build a transport-neutral outbound request with no adapter context.
Select a transport with Self::with_transport when more than one
adapter is registered.
Sourcepub fn with_transport(self, transport: Transport) -> OriginateRequest
pub fn with_transport(self, transport: Transport) -> OriginateRequest
Select the adapter transport for this request.
Sourcepub fn with_context<T>(self, context: T) -> OriginateRequest
pub fn with_context<T>(self, context: T) -> OriginateRequest
Attach options owned and interpreted by the selected adapter.
Sourcepub fn with_originate_context(
self,
context: OriginateContext,
) -> OriginateRequest
pub fn with_originate_context( self, context: OriginateContext, ) -> OriginateRequest
Attach an already type-erased adapter context.
Trait Implementations§
Source§impl Clone for OriginateRequest
impl Clone for OriginateRequest
Source§fn clone(&self) -> OriginateRequest
fn clone(&self) -> OriginateRequest
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for OriginateRequest
impl !UnwindSafe for OriginateRequest
impl Freeze for OriginateRequest
impl Send for OriginateRequest
impl Sync for OriginateRequest
impl Unpin for OriginateRequest
impl UnsafeUnpin for OriginateRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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