pub struct ScoreNotificationBuilder<State>(/* private fields */);
Expand description
Builder for serializing an instance of the ScoreNotification type.
Can be created using the ScoreNotification::builder method.
Implementations§
Source§impl ScoreNotificationBuilder<()>
impl ScoreNotificationBuilder<()>
Sourcepub fn score<T0>(self, value: T0) -> ScoreNotificationBuilder<(T0,)>
pub fn score<T0>(self, value: T0) -> ScoreNotificationBuilder<(T0,)>
Setter for the score
field.
Source§impl<T0> ScoreNotificationBuilder<(T0,)>
impl<T0> ScoreNotificationBuilder<(T0,)>
Sourcepub fn finish(self, builder: &mut Builder) -> Offset<ScoreNotification>where
Self: WriteAsOffset<ScoreNotification>,
pub fn finish(self, builder: &mut Builder) -> Offset<ScoreNotification>where
Self: WriteAsOffset<ScoreNotification>,
Finish writing the builder to get an Offset to a serialized ScoreNotification.
Trait Implementations§
Source§impl<State: Debug> Debug for ScoreNotificationBuilder<State>
impl<State: Debug> Debug for ScoreNotificationBuilder<State>
impl<T0: WriteAs<Offset<ConsumerScore>>> WriteAs<Offset<ScoreNotification>> for ScoreNotificationBuilder<(T0,)>
impl<T0: WriteAs<Offset<ConsumerScore>>> WriteAsOffset<ScoreNotification> for ScoreNotificationBuilder<(T0,)>
impl<T0: WriteAs<Offset<ConsumerScore>>> WriteAsOptional<Offset<ScoreNotification>> for ScoreNotificationBuilder<(T0,)>
Auto Trait Implementations§
impl<State> Freeze for ScoreNotificationBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for ScoreNotificationBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for ScoreNotificationBuilder<State>where
State: Send,
impl<State> Sync for ScoreNotificationBuilder<State>where
State: Sync,
impl<State> Unpin for ScoreNotificationBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for ScoreNotificationBuilder<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