pub struct FlowState {
pub initial_request: InitialRequest,
pub current_request: Option<Request>,
pub account: AccountLite,
pub device: Option<Device>,
pub connect: Option<ConnectState>,
pub tenant_type: TenantType,
}Fields§
§initial_request: InitialRequest§current_request: Option<Request>§account: AccountLite§device: Option<Device>§connect: Option<ConnectState>§tenant_type: TenantTypeImplementations§
Source§impl FlowState
impl FlowState
pub fn new( initial_request: InitialRequest, account: AccountLite, proxies: Vec<&str>, ) -> 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)
pub fn traverse_state(&mut self) -> Vec<FlowState>
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