Enum google_api_proto::google::ads::searchads360::v0::resources::ad::AdData
source · pub enum AdData {
TextAd(SearchAds360TextAdInfo),
ExpandedTextAd(SearchAds360ExpandedTextAdInfo),
ResponsiveSearchAd(SearchAds360ResponsiveSearchAdInfo),
ProductAd(SearchAds360ProductAdInfo),
ExpandedDynamicSearchAd(SearchAds360ExpandedDynamicSearchAdInfo),
}
Expand description
Details pertinent to the ad type. Exactly one value must be set.
Variants§
TextAd(SearchAds360TextAdInfo)
Immutable. Details pertaining to a text ad.
ExpandedTextAd(SearchAds360ExpandedTextAdInfo)
Immutable. Details pertaining to an expanded text ad.
ResponsiveSearchAd(SearchAds360ResponsiveSearchAdInfo)
Immutable. Details pertaining to a responsive search ad.
ProductAd(SearchAds360ProductAdInfo)
Immutable. Details pertaining to a product ad.
ExpandedDynamicSearchAd(SearchAds360ExpandedDynamicSearchAdInfo)
Immutable. Details pertaining to an expanded dynamic search ad.
Implementations§
source§impl AdData
impl AdData
sourcepub fn merge(
field: &mut Option<AdData>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<AdData>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for AdData
impl PartialEq for AdData
impl StructuralPartialEq for AdData
Auto Trait Implementations§
impl Freeze for AdData
impl RefUnwindSafe for AdData
impl Send for AdData
impl Sync for AdData
impl Unpin for AdData
impl UnwindSafe for AdData
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
§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>
Wrap the input message
T
in a tonic::Request