pub struct ExternalConnectionReference { /* private fields */ }Expand description
A stable external identifier learned while activating an outbound route.
The identifier namespace is adapter-owned (for example an adapter may use
sip.call-id). Core treats both namespace and value as opaque. The value
is deliberately available only through Self::expose_secret, and
formatting never reveals either component.
Implementations§
Source§impl ExternalConnectionReference
impl ExternalConnectionReference
pub fn new( kind: impl Into<Arc<str>>, value: impl Into<Arc<str>>, ) -> Result<ExternalConnectionReference, ExternalConnectionReferenceError>
Sourcepub fn kind(&self) -> &str
pub fn kind(&self) -> &str
Adapter-owned identifier namespace. Do not derive routing policy from this untrusted string without an exact allowlist.
Sourcepub fn expose_secret(&self) -> &str
pub fn expose_secret(&self) -> &str
Explicitly reveal the external identifier to its durable owner. Avoid formatting or logging the returned value.
Trait Implementations§
Source§impl Clone for ExternalConnectionReference
impl Clone for ExternalConnectionReference
Source§fn clone(&self) -> ExternalConnectionReference
fn clone(&self) -> ExternalConnectionReference
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 ExternalConnectionReference
impl Debug for ExternalConnectionReference
impl Eq for ExternalConnectionReference
Source§impl Hash for ExternalConnectionReference
impl Hash for ExternalConnectionReference
impl StructuralPartialEq for ExternalConnectionReference
Auto Trait Implementations§
impl Freeze for ExternalConnectionReference
impl RefUnwindSafe for ExternalConnectionReference
impl Send for ExternalConnectionReference
impl Sync for ExternalConnectionReference
impl Unpin for ExternalConnectionReference
impl UnsafeUnpin for ExternalConnectionReference
impl UnwindSafe for ExternalConnectionReference
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.