pub struct VideoSegmentServiceAsyncClient<T>(/* private fields */);
Expand description
Upon ingestion, every video is split into smaller segments. The Video Segment Service manages operations on videos at the segment-level.
Implementations§
Source§impl<T> VideoSegmentServiceAsyncClient<T>where
T: AsyncClient,
impl<T> VideoSegmentServiceAsyncClient<T>where
T: AsyncClient,
pub async fn create_segments( &self, auth_: &BearerToken, video_rid: &VideoRid, request: &CreateSegmentsRequest, ) -> Result<(), Error>
👎Deprecated: Replaced by createVideoFileSegments. Will be removed after April 15th.
pub async fn create_video_file_segments( &self, auth_: &BearerToken, video_rid: &VideoRid, video_file_rid: &VideoFileRid, request: &CreateSegmentsRequest, ) -> Result<CreateSegmentsResponse, Error>
Sourcepub async fn get_segment_by_timestamp(
&self,
auth_: &BearerToken,
video_rid: &VideoRid,
request: &GetSegmentByTimestampRequest,
) -> Result<Option<Segment>, Error>
pub async fn get_segment_by_timestamp( &self, auth_: &BearerToken, video_rid: &VideoRid, request: &GetSegmentByTimestampRequest, ) -> Result<Option<Segment>, Error>
Returns metadata for the segment within a video containing the requested absolute timestamp.
Trait Implementations§
Source§impl<T> AsyncService<T> for VideoSegmentServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for VideoSegmentServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for VideoSegmentServiceAsyncClient<T>
impl<T: Clone> Clone for VideoSegmentServiceAsyncClient<T>
Source§fn clone(&self) -> VideoSegmentServiceAsyncClient<T>
fn clone(&self) -> VideoSegmentServiceAsyncClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for VideoSegmentServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for VideoSegmentServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for VideoSegmentServiceAsyncClient<T>where
T: Send,
impl<T> Sync for VideoSegmentServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for VideoSegmentServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for VideoSegmentServiceAsyncClient<T>where
T: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request