pub struct NotificationRule {
pub kind: String,
pub spool: Option<SpoolRef>,
pub actor_origin: String,
pub channel: i32,
pub delivery: i32,
}Fields§
§kind: String§spool: Option<SpoolRef>§actor_origin: String§channel: i32§delivery: i32Implementations§
Source§impl NotificationRule
impl NotificationRule
Sourcepub fn channel(&self) -> Channel
pub fn channel(&self) -> Channel
Returns the enum value of channel, or the default if the field is set to an invalid enum value.
Sourcepub fn set_channel(&mut self, value: Channel)
pub fn set_channel(&mut self, value: Channel)
Sets channel to the provided enum value.
Sourcepub fn delivery(&self) -> Delivery
pub fn delivery(&self) -> Delivery
Returns the enum value of delivery, or the default if the field is set to an invalid enum value.
Sourcepub fn set_delivery(&mut self, value: Delivery)
pub fn set_delivery(&mut self, value: Delivery)
Sets delivery to the provided enum value.
Trait Implementations§
Source§impl Clone for NotificationRule
impl Clone for NotificationRule
Source§impl Debug for NotificationRule
impl Debug for NotificationRule
Source§impl Default for NotificationRule
impl Default for NotificationRule
impl Eq for NotificationRule
Source§impl Hash for NotificationRule
impl Hash for NotificationRule
Source§impl Message for NotificationRule
impl Message for NotificationRule
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 NotificationRule
impl PartialEq for NotificationRule
impl StructuralPartialEq for NotificationRule
Auto Trait Implementations§
impl Freeze for NotificationRule
impl RefUnwindSafe for NotificationRule
impl Send for NotificationRule
impl Sync for NotificationRule
impl Unpin for NotificationRule
impl UnsafeUnpin for NotificationRule
impl UnwindSafe for NotificationRule
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