pub struct VonagePhoneNumber {Show 15 fields
pub fallback_destination: Option<ImportTwilioPhoneNumberDtoFallbackDestination>,
pub hooks: Option<Vec<ImportTwilioPhoneNumberDtoHooksInner>>,
pub provider: ProviderTrue,
pub id: String,
pub org_id: String,
pub created_at: String,
pub updated_at: String,
pub status: Option<StatusTrue>,
pub name: Option<String>,
pub assistant_id: Option<String>,
pub workflow_id: Option<String>,
pub squad_id: Option<String>,
pub server: Option<Server>,
pub number: String,
pub credential_id: String,
}
Fields§
§fallback_destination: Option<ImportTwilioPhoneNumberDtoFallbackDestination>
§hooks: Option<Vec<ImportTwilioPhoneNumberDtoHooksInner>>
This is the hooks that will be used for incoming calls to this phone number.
provider: ProviderTrue
This is to use numbers bought on Vonage.
id: String
This is the unique identifier for the phone number.
org_id: String
This is the unique identifier for the org that this phone number belongs to.
created_at: String
This is the ISO 8601 date-time string of when the phone number was created.
updated_at: String
This is the ISO 8601 date-time string of when the phone number was last updated.
status: Option<StatusTrue>
This is the status of the phone number.
name: Option<String>
This is the name of the phone number. This is just for your own reference.
assistant_id: Option<String>
This is the assistant that will be used for incoming calls to this phone number. If neither assistantId
, squadId
nor workflowId
is set, assistant-request
will be sent to your Server URL. Check ServerMessage
and ServerMessageResponse
for the shape of the message and response that is expected.
workflow_id: Option<String>
This is the workflow that will be used for incoming calls to this phone number. If neither assistantId
, squadId
, nor workflowId
is set, assistant-request
will be sent to your Server URL. Check ServerMessage
and ServerMessageResponse
for the shape of the message and response that is expected.
squad_id: Option<String>
This is the squad that will be used for incoming calls to this phone number. If neither assistantId
, squadId
, nor workflowId
is set, assistant-request
will be sent to your Server URL. Check ServerMessage
and ServerMessageResponse
for the shape of the message and response that is expected.
server: Option<Server>
This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. The order of precedence is: 1. assistant.server 2. phoneNumber.server 3. org.server
number: String
These are the digits of the phone number you own on your Vonage.
credential_id: String
This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups.
Implementations§
Source§impl VonagePhoneNumber
impl VonagePhoneNumber
pub fn new( provider: ProviderTrue, id: String, org_id: String, created_at: String, updated_at: String, number: String, credential_id: String, ) -> VonagePhoneNumber
Trait Implementations§
Source§impl Clone for VonagePhoneNumber
impl Clone for VonagePhoneNumber
Source§fn clone(&self) -> VonagePhoneNumber
fn clone(&self) -> VonagePhoneNumber
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more