pub struct Channel {
pub advertiser_id: Option<i64>,
pub channel_id: Option<i64>,
pub display_name: Option<String>,
pub name: Option<String>,
pub negatively_targeted_line_item_count: Option<i64>,
pub partner_id: Option<i64>,
pub positively_targeted_line_item_count: Option<i64>,
}
Expand description
A single channel. Channels are custom groups of related websites and apps.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- channels create advertisers (request|response)
- channels get advertisers (response)
- channels patch advertisers (request|response)
- channels create partners (request|response)
- channels get partners (response)
- channels patch partners (request|response)
Fields§
§advertiser_id: Option<i64>
The ID of the advertiser that owns the channel.
channel_id: Option<i64>
Output only. The unique ID of the channel. Assigned by the system.
display_name: Option<String>
Required. The display name of the channel. Must be UTF-8 encoded with a maximum length of 240 bytes.
name: Option<String>
Output only. The resource name of the channel.
negatively_targeted_line_item_count: Option<i64>
Output only. Number of line items that are directly targeting this channel negatively.
partner_id: Option<i64>
The ID of the partner that owns the channel.
positively_targeted_line_item_count: Option<i64>
Output only. Number of line items that are directly targeting this channel positively.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Channel
impl ResponseResult for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more