pub struct ProtoOaHoliday {
pub holiday_id: i64,
pub name: String,
pub description: Option<String>,
pub schedule_time_zone: String,
pub holiday_date: i64,
pub is_recurring: bool,
pub start_second: Option<i32>,
pub end_second: Option<i32>,
}Fields§
§holiday_id: i64Unique ID of holiday.
name: StringName of holiday.
description: Option<String>Description of holiday.
schedule_time_zone: StringTimezone used for holiday.
holiday_date: i64Amount of days from 1st Jan 1970, multiply it by 86400000 to get Unix time in milliseconds.
is_recurring: boolIf TRUE, then the holiday happens each year.
start_second: Option<i32>Amount of seconds from 00:00:00 of the holiday day when holiday actually starts.
end_second: Option<i32>Amount of seconds from 00:00:00 of the holiday day when holiday actually finishes.
Implementations§
Source§impl ProtoOaHoliday
impl ProtoOaHoliday
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Sourcepub fn start_second(&self) -> i32
pub fn start_second(&self) -> i32
Returns the value of start_second, or the default value if start_second is unset.
Sourcepub fn end_second(&self) -> i32
pub fn end_second(&self) -> i32
Returns the value of end_second, or the default value if end_second is unset.
Trait Implementations§
Source§impl Clone for ProtoOaHoliday
impl Clone for ProtoOaHoliday
Source§fn clone(&self) -> ProtoOaHoliday
fn clone(&self) -> ProtoOaHoliday
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtoOaHoliday
impl Debug for ProtoOaHoliday
Source§impl Default for ProtoOaHoliday
impl Default for ProtoOaHoliday
Source§impl<'de> Deserialize<'de> for ProtoOaHoliday
impl<'de> Deserialize<'de> for ProtoOaHoliday
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ProtoOaHoliday
impl Hash for ProtoOaHoliday
Source§impl Message for ProtoOaHoliday
impl Message for ProtoOaHoliday
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ProtoOaHoliday
impl PartialEq for ProtoOaHoliday
Source§impl Serialize for ProtoOaHoliday
impl Serialize for ProtoOaHoliday
impl Eq for ProtoOaHoliday
impl StructuralPartialEq for ProtoOaHoliday
Auto Trait Implementations§
impl Freeze for ProtoOaHoliday
impl RefUnwindSafe for ProtoOaHoliday
impl Send for ProtoOaHoliday
impl Sync for ProtoOaHoliday
impl Unpin for ProtoOaHoliday
impl UnwindSafe for ProtoOaHoliday
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.