pub struct AdScheduleInfo {
pub start_minute: i32,
pub end_minute: i32,
pub start_hour: i32,
pub end_hour: 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: 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: 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.
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<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 AdScheduleInfo
impl PartialEq 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
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