pub struct RecordingsResource { /* private fields */ }Expand description
Call recordings — /api/v2/recordings, including bulk actions and per-recording flagging.
Implementations§
Source§impl RecordingsResource
impl RecordingsResource
Sourcepub async fn list_all(&self) -> Result<Vec<Recording>, ManagerError>
pub async fn list_all(&self) -> Result<Vec<Recording>, ManagerError>
List all recordings (auto-paginated).
Sourcepub async fn list_page(
&self,
page: i32,
per_page: Option<i32>,
) -> Result<Page<Recording>, ManagerError>
pub async fn list_page( &self, page: i32, per_page: Option<i32>, ) -> Result<Page<Recording>, ManagerError>
List one page of recordings.
Sourcepub async fn start(
&self,
body: RecordingStartRequest,
) -> Result<RecordingItemResponse, ManagerError>
pub async fn start( &self, body: RecordingStartRequest, ) -> Result<RecordingItemResponse, ManagerError>
Start a recording for a call.
Sourcepub async fn get(&self, id: &str) -> Result<RecordingItemResponse, ManagerError>
pub async fn get(&self, id: &str) -> Result<RecordingItemResponse, ManagerError>
Get a recording by id.
Sourcepub async fn update(
&self,
id: &str,
body: RecordingUpdateBody,
) -> Result<RecordingItemResponse, ManagerError>
pub async fn update( &self, id: &str, body: RecordingUpdateBody, ) -> Result<RecordingItemResponse, ManagerError>
Update a recording’s metadata.
Sourcepub async fn bulk_action(
&self,
action: &str,
ids: Vec<String>,
) -> Result<BulkActionResponse, ManagerError>
pub async fn bulk_action( &self, action: &str, ids: Vec<String>, ) -> Result<BulkActionResponse, ManagerError>
Apply a bulk action to multiple recordings by id.
Sourcepub async fn get_flag(
&self,
id: &str,
) -> Result<RecordingItemResponse, ManagerError>
pub async fn get_flag( &self, id: &str, ) -> Result<RecordingItemResponse, ManagerError>
Get a recording’s flag state.
Sourcepub async fn flag(
&self,
id: &str,
) -> Result<RecordingItemResponse, ManagerError>
pub async fn flag( &self, id: &str, ) -> Result<RecordingItemResponse, ManagerError>
Flag a recording.
Sourcepub async fn unflag(
&self,
id: &str,
) -> Result<RecordingItemResponse, ManagerError>
pub async fn unflag( &self, id: &str, ) -> Result<RecordingItemResponse, ManagerError>
Unflag a recording.
Sourcepub async fn toggle_flag(
&self,
id: &str,
) -> Result<RecordingItemResponse, ManagerError>
pub async fn toggle_flag( &self, id: &str, ) -> Result<RecordingItemResponse, ManagerError>
Toggle a recording’s flag.
Auto Trait Implementations§
impl !RefUnwindSafe for RecordingsResource
impl !UnwindSafe for RecordingsResource
impl Freeze for RecordingsResource
impl Send for RecordingsResource
impl Sync for RecordingsResource
impl Unpin for RecordingsResource
impl UnsafeUnpin for RecordingsResource
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