pub struct FlowState {
pub base_url: String,
pub initial_request: InitialRequest,
pub current_request: Option<Request>,
pub account: AccountLite,
pub region: Region,
pub regions: Vec<Region>,
pub voice_server: VoiceServer,
pub device: Option<DeviceStruct>,
pub connect: Option<ConnectState>,
pub tenant_type: TenantType,
pub code: CodeCache,
pub data: HashMap<String, DeviceTag>,
}
Fields§
§base_url: String
§initial_request: InitialRequest
§current_request: Option<Request>
§account: AccountLite
§region: Region
§regions: Vec<Region>
§voice_server: VoiceServer
§device: Option<DeviceStruct>
§connect: Option<ConnectState>
§tenant_type: TenantType
§code: CodeCache
§data: HashMap<String, DeviceTag>
Implementations§
Source§impl FlowState
impl FlowState
pub fn new( base_url: String, initial_request: InitialRequest, account: AccountLite, region: Region, voice_server: VoiceServer, proxies: Vec<&str>, regions: Vec<Region>, code: CodeCache, ) -> FlowState
pub fn get_country_code(&self) -> String
pub fn get_from(&self) -> String
pub fn get_to(&self) -> String
pub fn get_paid_or_from(&self) -> String
pub fn get_timezone(&self) -> String
pub fn get_dial_status(&self) -> Option<SIPStatus>
pub fn get_digits(&self) -> Option<String>
pub fn add_state(&mut self, state: ConnectState)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlowState
impl<'de> Deserialize<'de> for FlowState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FlowState
impl RefUnwindSafe for FlowState
impl Send for FlowState
impl Sync for FlowState
impl Unpin for FlowState
impl UnwindSafe for FlowState
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more