pub struct CallInput {
pub agent: Option<String>,
pub from: Option<String>,
pub record: Option<bool>,
pub to: Option<String>,
pub webhook: Option<String>,
}Fields§
§agent: Option<String>Agent hands the answered call to a Hanzo assistant by name instead of connecting it to a person. Empty places an ordinary call.
from: Option<String>From is the number to call FROM, in E.164. It must be one this org holds.
record: Option<bool>Record is a per-call flag rather than a product. Where a recording lands and how long it is kept is the org’s retention policy, not this call’s.
to: Option<String>To is the number to call, in E.164.
webhook: Option<String>Webhook is a URL the carrier posts this call’s events to as it progresses. Empty means the call’s outcome is only visible by reading it back.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CallInput
impl<'de> Deserialize<'de> for CallInput
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
impl StructuralPartialEq for CallInput
Auto Trait Implementations§
impl Freeze for CallInput
impl RefUnwindSafe for CallInput
impl Send for CallInput
impl Sync for CallInput
impl Unpin for CallInput
impl UnsafeUnpin for CallInput
impl UnwindSafe for CallInput
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