Struct google_api_proto::google::ads::googleads::v15::common::AdScheduleInfo
source · pub struct AdScheduleInfo {
pub start_minute: i32,
pub end_minute: i32,
pub start_hour: Option<i32>,
pub end_hour: Option<i32>,
pub day_of_week: i32,
}
Expand description
Represents an AdSchedule criterion.
AdSchedule is specified as the day of the week and a time interval within which ads will be shown.
No more than six AdSchedules can be added for the same day.
Fields§
§start_minute: i32
Minutes after the start hour at which this schedule starts.
This field is required for CREATE operations and is prohibited on UPDATE operations.
end_minute: i32
Minutes after the end hour at which this schedule ends. The schedule is exclusive of the end minute.
This field is required for CREATE operations and is prohibited on UPDATE operations.
start_hour: Option<i32>
Starting hour in 24 hour time. This field must be between 0 and 23, inclusive.
This field is required for CREATE operations and is prohibited on UPDATE operations.
end_hour: Option<i32>
Ending hour in 24 hour time; 24 signifies end of the day. This field must be between 0 and 24, inclusive.
This field is required for CREATE operations and is prohibited on UPDATE operations.
day_of_week: i32
Day of the week the schedule applies to.
This field is required for CREATE operations and is prohibited on UPDATE operations.
Implementations§
source§impl AdScheduleInfo
impl AdScheduleInfo
sourcepub fn start_minute(&self) -> MinuteOfHour
pub fn start_minute(&self) -> MinuteOfHour
Returns the enum value of start_minute
, or the default if the field is set to an invalid enum value.
sourcepub fn set_start_minute(&mut self, value: MinuteOfHour)
pub fn set_start_minute(&mut self, value: MinuteOfHour)
Sets start_minute
to the provided enum value.
sourcepub fn end_minute(&self) -> MinuteOfHour
pub fn end_minute(&self) -> MinuteOfHour
Returns the enum value of end_minute
, or the default if the field is set to an invalid enum value.
sourcepub fn set_end_minute(&mut self, value: MinuteOfHour)
pub fn set_end_minute(&mut self, value: MinuteOfHour)
Sets end_minute
to the provided enum value.
sourcepub fn day_of_week(&self) -> DayOfWeek
pub fn day_of_week(&self) -> DayOfWeek
Returns the enum value of day_of_week
, or the default if the field is set to an invalid enum value.
sourcepub fn set_day_of_week(&mut self, value: DayOfWeek)
pub fn set_day_of_week(&mut self, value: DayOfWeek)
Sets day_of_week
to the provided enum value.
sourcepub fn start_hour(&self) -> i32
pub fn start_hour(&self) -> i32
Returns the value of start_hour
, or the default value if start_hour
is unset.
Trait Implementations§
source§impl Clone for AdScheduleInfo
impl Clone for AdScheduleInfo
source§fn clone(&self) -> AdScheduleInfo
fn clone(&self) -> AdScheduleInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AdScheduleInfo
impl Debug for AdScheduleInfo
source§impl Default for AdScheduleInfo
impl Default for AdScheduleInfo
source§impl Message for AdScheduleInfo
impl Message for AdScheduleInfo
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 AdScheduleInfo
impl PartialEq for AdScheduleInfo
source§fn eq(&self, other: &AdScheduleInfo) -> bool
fn eq(&self, other: &AdScheduleInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for AdScheduleInfo
impl StructuralPartialEq for AdScheduleInfo
Auto Trait Implementations§
impl Freeze for AdScheduleInfo
impl RefUnwindSafe for AdScheduleInfo
impl Send for AdScheduleInfo
impl Sync for AdScheduleInfo
impl Unpin for AdScheduleInfo
impl UnwindSafe for AdScheduleInfo
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