Struct google_api_proto::google::ads::googleads::v17::common::PolicyTopicEntry
source · pub struct PolicyTopicEntry {
pub topic: Option<String>,
pub type: i32,
pub evidences: Vec<PolicyTopicEvidence>,
pub constraints: Vec<PolicyTopicConstraint>,
}
Expand description
Policy finding attached to a resource (for example, alcohol policy associated with a site that sells alcohol).
Each PolicyTopicEntry has a topic that indicates the specific ads policy the entry is about and a type to indicate the effect that the entry will have on serving. It may optionally have one or more evidences that indicate the reason for the finding. It may also optionally have one or more constraints that provide details about how serving may be restricted.
Fields§
§topic: Option<String>
Policy topic this finding refers to. For example, “ALCOHOL”, “TRADEMARKS_IN_AD_TEXT”, or “DESTINATION_NOT_WORKING”. The set of possible policy topics is not fixed for a particular API version and may change at any time.
type: i32
Describes the negative or positive effect this policy will have on serving.
evidences: Vec<PolicyTopicEvidence>
Additional information that explains policy finding (for example, the brand name for a trademark finding).
constraints: Vec<PolicyTopicConstraint>
Indicates how serving of this resource may be affected (for example, not serving in a country).
Implementations§
source§impl PolicyTopicEntry
impl PolicyTopicEntry
sourcepub fn type(&self) -> PolicyTopicEntryType
pub fn type(&self) -> PolicyTopicEntryType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: PolicyTopicEntryType)
pub fn set_type(&mut self, value: PolicyTopicEntryType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Clone for PolicyTopicEntry
impl Clone for PolicyTopicEntry
source§fn clone(&self) -> PolicyTopicEntry
fn clone(&self) -> PolicyTopicEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PolicyTopicEntry
impl Debug for PolicyTopicEntry
source§impl Default for PolicyTopicEntry
impl Default for PolicyTopicEntry
source§impl Message for PolicyTopicEntry
impl Message for PolicyTopicEntry
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 PolicyTopicEntry
impl PartialEq for PolicyTopicEntry
source§fn eq(&self, other: &PolicyTopicEntry) -> bool
fn eq(&self, other: &PolicyTopicEntry) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PolicyTopicEntry
Auto Trait Implementations§
impl Freeze for PolicyTopicEntry
impl RefUnwindSafe for PolicyTopicEntry
impl Send for PolicyTopicEntry
impl Sync for PolicyTopicEntry
impl Unpin for PolicyTopicEntry
impl UnwindSafe for PolicyTopicEntry
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