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