Struct google_api_proto::google::ads::googleads::v17::resources::MediaVideo
source · pub struct MediaVideo {
pub ad_duration_millis: Option<i64>,
pub youtube_video_id: Option<String>,
pub advertising_id_code: Option<String>,
pub isci_code: Option<String>,
}
Expand description
Encapsulates a Video.
Fields§
§ad_duration_millis: Option<i64>
Output only. The duration of the Video in milliseconds.
youtube_video_id: Option<String>
Immutable. The YouTube video ID (as seen in YouTube URLs). Adding prefix “https://www.youtube.com/watch?v=" to this ID will get the YouTube streaming URL for this video.
advertising_id_code: Option<String>
Output only. The Advertising Digital Identification code for this video, as defined by the American Association of Advertising Agencies, used mainly for television commercials.
isci_code: Option<String>
Output only. The Industry Standard Commercial Identifier code for this video, used mainly for television commercials.
Implementations§
source§impl MediaVideo
impl MediaVideo
sourcepub fn ad_duration_millis(&self) -> i64
pub fn ad_duration_millis(&self) -> i64
Returns the value of ad_duration_millis
, or the default value if ad_duration_millis
is unset.
sourcepub fn youtube_video_id(&self) -> &str
pub fn youtube_video_id(&self) -> &str
Returns the value of youtube_video_id
, or the default value if youtube_video_id
is unset.
sourcepub fn advertising_id_code(&self) -> &str
pub fn advertising_id_code(&self) -> &str
Returns the value of advertising_id_code
, or the default value if advertising_id_code
is unset.
Trait Implementations§
source§impl Clone for MediaVideo
impl Clone for MediaVideo
source§fn clone(&self) -> MediaVideo
fn clone(&self) -> MediaVideo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MediaVideo
impl Debug for MediaVideo
source§impl Default for MediaVideo
impl Default for MediaVideo
source§impl Message for MediaVideo
impl Message for MediaVideo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for MediaVideo
impl PartialEq for MediaVideo
source§fn eq(&self, other: &MediaVideo) -> bool
fn eq(&self, other: &MediaVideo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MediaVideo
Auto Trait Implementations§
impl Freeze for MediaVideo
impl RefUnwindSafe for MediaVideo
impl Send for MediaVideo
impl Sync for MediaVideo
impl Unpin for MediaVideo
impl UnwindSafe for MediaVideo
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request