pub struct NotificationProfile {Show 13 fields
pub id: Vec<u8>,
pub name: String,
pub emoji: Option<String>,
pub color: u32,
pub created_at_ms: u64,
pub allow_all_calls: bool,
pub allow_all_mentions: bool,
pub allowed_members: Vec<Recipient>,
pub schedule_enabled: bool,
pub schedule_start_time: u32,
pub schedule_end_time: u32,
pub schedule_days_enabled: Vec<i32>,
pub deleted_at_timestamp_ms: u64,
}Fields§
§id: Vec<u8>§name: String§emoji: Option<String>§color: u320xAARRGGBB
created_at_ms: u64§allow_all_calls: bool§allow_all_mentions: bool§allowed_members: Vec<Recipient>§schedule_enabled: bool§schedule_start_time: u3224-hour clock int, 0000-2359 (e.g., 15, 900, 1130, 2345)
schedule_end_time: u3224-hour clock int, 0000-2359 (e.g., 15, 900, 1130, 2345)
schedule_days_enabled: Vec<i32>§deleted_at_timestamp_ms: u64Implementations§
Source§impl NotificationProfile
impl NotificationProfile
Sourcepub fn emoji(&self) -> &str
pub fn emoji(&self) -> &str
Returns the value of emoji, or the default value if emoji is unset.
Sourcepub fn schedule_days_enabled(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<DayOfWeek>>
pub fn schedule_days_enabled( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<DayOfWeek>>
Returns an iterator which yields the valid enum values contained in schedule_days_enabled.
Sourcepub fn push_schedule_days_enabled(&mut self, value: DayOfWeek)
pub fn push_schedule_days_enabled(&mut self, value: DayOfWeek)
Appends the provided enum value to schedule_days_enabled.
Trait Implementations§
Source§impl Clone for NotificationProfile
impl Clone for NotificationProfile
Source§fn clone(&self) -> NotificationProfile
fn clone(&self) -> NotificationProfile
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 NotificationProfile
impl Debug for NotificationProfile
Source§impl Default for NotificationProfile
impl Default for NotificationProfile
Source§impl Message for NotificationProfile
impl Message for NotificationProfile
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 NotificationProfile
impl PartialEq for NotificationProfile
impl StructuralPartialEq for NotificationProfile
Auto Trait Implementations§
impl Freeze for NotificationProfile
impl RefUnwindSafe for NotificationProfile
impl Send for NotificationProfile
impl Sync for NotificationProfile
impl Unpin for NotificationProfile
impl UnsafeUnpin for NotificationProfile
impl UnwindSafe for NotificationProfile
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> 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> 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>
Converts
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>
Converts
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<T> PartialDefault for Twhere
T: Default,
impl<T> PartialDefault for Twhere
T: Default,
§fn partial_default() -> T
fn partial_default() -> T
Returns a value that can be safely dropped or assigned over.