pub struct CreateCallRecordingParams {
pub account_sid: String,
pub call_sid: String,
pub recording_status_callback_event: Option<Vec<String>>,
pub recording_status_callback: Option<String>,
pub recording_status_callback_method: Option<String>,
pub trim: Option<String>,
pub recording_channels: Option<String>,
pub recording_track: Option<String>,
}
Expand description
struct for passing parameters to the method create_call_recording
Fields§
§account_sid: String
The SID of the Account that will create the resource.
call_sid: String
The SID of the Call to associate the resource with.
recording_status_callback_event: Option<Vec<String>>
The recording status events on which we should call the recording_status_callback
URL. Can be: in-progress
, completed
and absent
and the default is completed
. Separate multiple event values with a space.
recording_status_callback: Option<String>
The URL we should call using the recording_status_callback_method
on each recording event specified in recording_status_callback_event
. For more information, see RecordingStatusCallback parameters.
recording_status_callback_method: Option<String>
The HTTP method we should use to call recording_status_callback
. Can be: GET
or POST
and the default is POST
.
trim: Option<String>
Whether to trim any leading and trailing silence in the recording. Can be: trim-silence
or do-not-trim
and the default is do-not-trim
. trim-silence
trims the silence from the beginning and end of the recording and do-not-trim
does not.
recording_channels: Option<String>
The number of channels used in the recording. Can be: mono
or dual
and the default is mono
. mono
records all parties of the call into one channel. dual
records each party of a 2-party call into separate channels.
recording_track: Option<String>
The audio track to record for the call. Can be: inbound
, outbound
or both
. The default is both
. inbound
records the audio that is received by Twilio. outbound
records the audio that is generated from Twilio. both
records the audio that is received and generated by Twilio.
Trait Implementations§
Source§impl Clone for CreateCallRecordingParams
impl Clone for CreateCallRecordingParams
Source§fn clone(&self) -> CreateCallRecordingParams
fn clone(&self) -> CreateCallRecordingParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more