pub enum RoutingRuleTarget {
Direct {
room_id: String,
pin: Option<String>,
},
Individual {
room_prefix: Option<SipRoomPrefix>,
pin: Option<String>,
},
}Expand description
Where a routing rule sends the caller.
This is friendly sugar over SipRoomConfig. Pass it as
CreateRoutingRuleParams::rule; set CreateRoutingRuleParams::room
instead to configure the wire shape directly.
Variants§
Direct
Places every matching call into one fixed room.
Individual
Creates a fresh room for each matching call.
Fields
§
room_prefix: Option<SipRoomPrefix>How the per-call room id is generated. Defaults to
SipRoomPrefix::BLANK. A strategy, not a literal prefix.
Trait Implementations§
Source§impl Clone for RoutingRuleTarget
impl Clone for RoutingRuleTarget
Source§fn clone(&self) -> RoutingRuleTarget
fn clone(&self) -> RoutingRuleTarget
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 moreSource§impl Debug for RoutingRuleTarget
impl Debug for RoutingRuleTarget
Source§impl From<RoutingRuleTarget> for SipRoomConfig
impl From<RoutingRuleTarget> for SipRoomConfig
Source§fn from(target: RoutingRuleTarget) -> Self
fn from(target: RoutingRuleTarget) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RoutingRuleTarget
impl RefUnwindSafe for RoutingRuleTarget
impl Send for RoutingRuleTarget
impl Sync for RoutingRuleTarget
impl Unpin for RoutingRuleTarget
impl UnsafeUnpin for RoutingRuleTarget
impl UnwindSafe for RoutingRuleTarget
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