pub struct Asset {Show 13 fields
pub resource_name: String,
pub id: i64,
pub name: String,
pub type: i32,
pub final_urls: Vec<String>,
pub final_mobile_urls: Vec<String>,
pub tracking_url_template: String,
pub url_custom_parameters: Vec<CustomParameter>,
pub final_url_suffix: String,
pub source: i32,
pub policy_summary: Option<AssetPolicySummary>,
pub field_type_policy_summaries: Vec<AssetFieldTypePolicySummary>,
pub asset_data: Option<AssetData>,
}
Expand description
Asset is a part of an ad which can be shared across multiple ads. It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc. Assets are immutable and cannot be removed. To stop an asset from serving, remove the asset from the entity that is using it.
Fields§
§resource_name: String
Immutable. The resource name of the asset. Asset resource names have the form:
customers/{customer_id}/assets/{asset_id}
id: i64
Output only. The ID of the asset.
name: String
Optional name of the asset.
type: i32
Output only. Type of the asset.
final_urls: Vec<String>
A list of possible final URLs after all cross domain redirects.
final_mobile_urls: Vec<String>
A list of possible final mobile URLs after all cross domain redirects.
tracking_url_template: String
URL template for constructing a tracking URL.
url_custom_parameters: Vec<CustomParameter>
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
final_url_suffix: String
URL template for appending params to landing page URLs served with parallel tracking.
source: i32
Output only. Source of the asset.
policy_summary: Option<AssetPolicySummary>
Output only. Policy information for the asset.
field_type_policy_summaries: Vec<AssetFieldTypePolicySummary>
Output only. Policy information for the asset for each FieldType.
asset_data: Option<AssetData>
The specific type of the asset.
Implementations§
Source§impl Asset
impl Asset
Sourcepub fn type(&self) -> AssetType
pub fn type(&self) -> AssetType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
Sourcepub fn source(&self) -> AssetSource
pub fn source(&self) -> AssetSource
Returns the enum value of source
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_source(&mut self, value: AssetSource)
pub fn set_source(&mut self, value: AssetSource)
Sets source
to the provided enum value.
Trait Implementations§
Source§impl Message for Asset
impl Message for Asset
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.impl StructuralPartialEq for Asset
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
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
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>
T
in a tonic::Request