Struct jsonrpc_v2::NotificationBuilder
source · pub struct NotificationBuilder<M = ()> { /* private fields */ }
Expand description
Builder struct for a notification request object
Implementations§
source§impl<M> NotificationBuilder<M>
impl<M> NotificationBuilder<M>
pub fn with_params<I: Into<Value>>(self, params: I) -> Self
source§impl NotificationBuilder<()>
impl NotificationBuilder<()>
pub fn with_method<I: Into<String>>( self, method: I ) -> NotificationBuilder<String>
source§impl NotificationBuilder<String>
impl NotificationBuilder<String>
pub fn finish(self) -> RequestObject
Trait Implementations§
source§impl<M: Default> Default for NotificationBuilder<M>
impl<M: Default> Default for NotificationBuilder<M>
source§fn default() -> NotificationBuilder<M>
fn default() -> NotificationBuilder<M>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<M> RefUnwindSafe for NotificationBuilder<M>where M: RefUnwindSafe,
impl<M> Send for NotificationBuilder<M>where M: Send,
impl<M> Sync for NotificationBuilder<M>where M: Sync,
impl<M> Unpin for NotificationBuilder<M>where M: Unpin,
impl<M> UnwindSafe for NotificationBuilder<M>where M: 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