#[non_exhaustive]pub struct CreateVodSessionRequest {
pub parent: String,
pub vod_session: Option<VodSession>,
/* private fields */
}Expand description
Request message for VideoStitcherService.createVodSession
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The project and location in which the VOD session should be
created, in the form of projects/{project_number}/locations/{location}.
vod_session: Option<VodSession>Required. Parameters for creating a session.
Implementations§
Source§impl CreateVodSessionRequest
impl CreateVodSessionRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_vod_session<T>(self, v: T) -> Selfwhere
T: Into<VodSession>,
pub fn set_vod_session<T>(self, v: T) -> Selfwhere
T: Into<VodSession>,
Sets the value of vod_session.
§Example
ⓘ
use google_cloud_video_stitcher_v1::model::VodSession;
let x = CreateVodSessionRequest::new().set_vod_session(VodSession::default()/* use setters */);Sourcepub fn set_or_clear_vod_session<T>(self, v: Option<T>) -> Selfwhere
T: Into<VodSession>,
pub fn set_or_clear_vod_session<T>(self, v: Option<T>) -> Selfwhere
T: Into<VodSession>,
Sets or clears the value of vod_session.
§Example
ⓘ
use google_cloud_video_stitcher_v1::model::VodSession;
let x = CreateVodSessionRequest::new().set_or_clear_vod_session(Some(VodSession::default()/* use setters */));
let x = CreateVodSessionRequest::new().set_or_clear_vod_session(None::<VodSession>);Trait Implementations§
Source§impl Clone for CreateVodSessionRequest
impl Clone for CreateVodSessionRequest
Source§fn clone(&self) -> CreateVodSessionRequest
fn clone(&self) -> CreateVodSessionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateVodSessionRequest
impl Debug for CreateVodSessionRequest
Source§impl Default for CreateVodSessionRequest
impl Default for CreateVodSessionRequest
Source§fn default() -> CreateVodSessionRequest
fn default() -> CreateVodSessionRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateVodSessionRequest
impl Message for CreateVodSessionRequest
Source§impl PartialEq for CreateVodSessionRequest
impl PartialEq for CreateVodSessionRequest
Source§fn eq(&self, other: &CreateVodSessionRequest) -> bool
fn eq(&self, other: &CreateVodSessionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateVodSessionRequest
Auto Trait Implementations§
impl Freeze for CreateVodSessionRequest
impl RefUnwindSafe for CreateVodSessionRequest
impl Send for CreateVodSessionRequest
impl Sync for CreateVodSessionRequest
impl Unpin for CreateVodSessionRequest
impl UnsafeUnpin for CreateVodSessionRequest
impl UnwindSafe for CreateVodSessionRequest
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