#[non_exhaustive]pub enum FieldKind {
ChannelName,
CallerIdName,
CallerIdNumber,
DestinationNumber,
CallId,
Uuid,
SipUri,
IpAddr,
}Expand description
What a located span holds.
A kind names the slot the value sits in, not the value’s shape — a
CallerIdName frequently holds a number, and the
consumer decides what that means.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ChannelName
An endpoint channel name (sofia/<profile>/<user>@<host>, loopback/...).
CallerIdName
Caller-id display name.
CallerIdNumber
Caller-id number.
DestinationNumber
The number the dialplan is routing to.
CallId
A SIP Call-ID.
Uuid
A channel UUID appearing anywhere in the text.
SipUri
A SIP URI. No shape emits one yet — the variant is reserved for URI positions FreeSWITCH itself frames; URIs in channel-variable values are deliberately not classified here.
IpAddr
An IP address, at positions the classifier frames (a channel name’s host, an inbound INVITE’s source).
Implementations§
Trait Implementations§
impl Copy for FieldKind
impl Eq for FieldKind
Source§impl Ord for FieldKind
impl Ord for FieldKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for FieldKind
impl PartialOrd for FieldKind
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.