freeswitch_types/variables/
mod.rs1mod core;
5mod core_media;
6mod esl_array;
7mod sip_multipart;
8mod sip_passthrough;
9mod sofia;
10
11pub use self::core::{ChannelVariable, ParseChannelVariableError};
12pub use core_media::{CoreMediaVariable, ParseCoreMediaVariableError};
13pub use esl_array::EslArray;
14pub use sip_multipart::{MultipartBody, MultipartItem};
15pub use sip_passthrough::{
16 InvalidHeaderName, ParseSipPassthroughError, SipHeaderPrefix, SipPassthroughHeader,
17};
18pub use sofia::{ParseSofiaVariableError, SofiaVariable};
19
20pub trait VariableName {
27 fn as_str(&self) -> &str;
29}
30
31impl VariableName for ChannelVariable {
32 fn as_str(&self) -> &str {
33 ChannelVariable::as_str(self)
34 }
35}
36
37impl VariableName for SofiaVariable {
38 fn as_str(&self) -> &str {
39 SofiaVariable::as_str(self)
40 }
41}
42
43impl VariableName for CoreMediaVariable {
44 fn as_str(&self) -> &str {
45 CoreMediaVariable::as_str(self)
46 }
47}