pub struct PolicyTopicEntry {
pub topic: 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: 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<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
.Source§impl PartialEq for PolicyTopicEntry
impl PartialEq for PolicyTopicEntry
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
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