pub struct SendNotificationBuilder<State>(/* private fields */);
Expand description
Builder for serializing an instance of the SendNotification type.
Can be created using the SendNotification::builder method.
Implementations§
Source§impl SendNotificationBuilder<()>
impl SendNotificationBuilder<()>
Sourcepub fn ppid<T0>(self, value: T0) -> SendNotificationBuilder<(T0,)>
pub fn ppid<T0>(self, value: T0) -> SendNotificationBuilder<(T0,)>
Setter for the ppid
field.
Sourcepub fn ppid_as_default(self) -> SendNotificationBuilder<(DefaultValue,)>
pub fn ppid_as_default(self) -> SendNotificationBuilder<(DefaultValue,)>
Sets the ppid
field to the default value.
Source§impl<T0> SendNotificationBuilder<(T0,)>
impl<T0> SendNotificationBuilder<(T0,)>
Sourcepub fn data<T1>(self, value: T1) -> SendNotificationBuilder<(T0, T1)>
pub fn data<T1>(self, value: T1) -> SendNotificationBuilder<(T0, T1)>
Setter for the data
field.
Source§impl<T0, T1> SendNotificationBuilder<(T0, T1)>
impl<T0, T1> SendNotificationBuilder<(T0, T1)>
Sourcepub fn subchannels<T2>(self, value: T2) -> SendNotificationBuilder<(T0, T1, T2)>
pub fn subchannels<T2>(self, value: T2) -> SendNotificationBuilder<(T0, T1, T2)>
Setter for the subchannels
field.
Sourcepub fn subchannels_as_null(self) -> SendNotificationBuilder<(T0, T1, ())>
pub fn subchannels_as_null(self) -> SendNotificationBuilder<(T0, T1, ())>
Sets the subchannels
field to null.
Source§impl<T0, T1, T2> SendNotificationBuilder<(T0, T1, T2)>
impl<T0, T1, T2> SendNotificationBuilder<(T0, T1, T2)>
Sourcepub fn required_subchannel<T3>(
self,
value: T3,
) -> SendNotificationBuilder<(T0, T1, T2, T3)>where
T3: WriteAsOptional<u16>,
pub fn required_subchannel<T3>(
self,
value: T3,
) -> SendNotificationBuilder<(T0, T1, T2, T3)>where
T3: WriteAsOptional<u16>,
Setter for the required_subchannel
field.
Sourcepub fn required_subchannel_as_null(
self,
) -> SendNotificationBuilder<(T0, T1, T2, ())>
pub fn required_subchannel_as_null( self, ) -> SendNotificationBuilder<(T0, T1, T2, ())>
Sets the required_subchannel
field to null.
Source§impl<T0, T1, T2, T3> SendNotificationBuilder<(T0, T1, T2, T3)>
impl<T0, T1, T2, T3> SendNotificationBuilder<(T0, T1, T2, T3)>
Sourcepub fn finish(self, builder: &mut Builder) -> Offset<SendNotification>where
Self: WriteAsOffset<SendNotification>,
pub fn finish(self, builder: &mut Builder) -> Offset<SendNotification>where
Self: WriteAsOffset<SendNotification>,
Finish writing the builder to get an Offset to a serialized SendNotification.
Trait Implementations§
Source§impl<State: Debug> Debug for SendNotificationBuilder<State>
impl<State: Debug> Debug for SendNotificationBuilder<State>
impl<T0: WriteAsDefault<u32, u32>, T1: WriteAs<Offset<[u8]>>, T2: WriteAsOptional<Offset<[u16]>>, T3: WriteAsOptional<u16>> WriteAs<Offset<SendNotification>> for SendNotificationBuilder<(T0, T1, T2, T3)>
impl<T0: WriteAsDefault<u32, u32>, T1: WriteAs<Offset<[u8]>>, T2: WriteAsOptional<Offset<[u16]>>, T3: WriteAsOptional<u16>> WriteAsOffset<SendNotification> for SendNotificationBuilder<(T0, T1, T2, T3)>
impl<T0: WriteAsDefault<u32, u32>, T1: WriteAs<Offset<[u8]>>, T2: WriteAsOptional<Offset<[u16]>>, T3: WriteAsOptional<u16>> WriteAsOptional<Offset<SendNotification>> for SendNotificationBuilder<(T0, T1, T2, T3)>
Auto Trait Implementations§
impl<State> Freeze for SendNotificationBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for SendNotificationBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for SendNotificationBuilder<State>where
State: Send,
impl<State> Sync for SendNotificationBuilder<State>where
State: Sync,
impl<State> Unpin for SendNotificationBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for SendNotificationBuilder<State>where
State: UnwindSafe,
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