pub struct AccountLite {
pub id: String,
pub name: String,
pub mbn: String,
pub domain: String,
pub created: Option<String>,
pub organisation: RecordReference,
pub ddis: Vec<DDI>,
pub trunks: Vec<Trunk>,
pub hooks: Vec<Hook>,
pub devices: Vec<Device>,
pub environment: Environment,
}Fields§
§id: String§name: String§mbn: String§domain: String§created: Option<String>§organisation: RecordReference§ddis: Vec<DDI>§trunks: Vec<Trunk>§hooks: Vec<Hook>§devices: Vec<Device>§environment: EnvironmentImplementations§
Source§impl AccountLite
impl AccountLite
pub fn country_code(&self) -> &str
pub fn country_code_parsed(&self) -> Id
pub fn inbound_flow(&self, str: &str) -> Option<Device>
pub fn outbound_flow(&self) -> Option<Device>
pub fn device(&self, id: &str) -> Option<Device>
pub fn ddi(&self, str: &str) -> Option<DDI>
pub fn traverse(&self, state: &mut FlowState) -> Vec<FlowState>
pub fn clean_str(&self, str: &str) -> String
Trait Implementations§
Source§impl Clone for AccountLite
impl Clone for AccountLite
Source§fn clone(&self) -> AccountLite
fn clone(&self) -> AccountLite
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for AccountLite
impl<'de> Deserialize<'de> for AccountLite
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 AccountLite
impl RefUnwindSafe for AccountLite
impl Send for AccountLite
impl Sync for AccountLite
impl Unpin for AccountLite
impl UnwindSafe for AccountLite
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