pub struct DirectNotificationRequestBuilder { /* private fields */ }Expand description
Builder for DirectNotificationRequest.
Implementations§
Source§impl DirectNotificationRequestBuilder
impl DirectNotificationRequestBuilder
Sourcepub fn with_group_chat_id<VALUE: Into<Uuid>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_group_chat_id<VALUE: Into<Uuid>>( &mut self, value: VALUE, ) -> &mut Self
идентификатор чата в который придет сообщение
Sourcepub fn with_recipients<VALUE: Into<Vec<Uuid>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_recipients<VALUE: Into<Vec<Uuid>>>( &mut self, value: VALUE, ) -> &mut Self
(Default: null) - huid получателей события. По умолчанию все участники чата
Sourcepub fn with_notification<VALUE: Into<EventPayload>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_notification<VALUE: Into<EventPayload>>( &mut self, value: VALUE, ) -> &mut Self
Базовая часть нотификации
Sourcepub fn with_file<VALUE: Into<File>>(&mut self, value: VALUE) -> &mut Self
pub fn with_file<VALUE: Into<File>>(&mut self, value: VALUE) -> &mut Self
(Default: null) - файл в base64 представление.
Sourcepub fn with_opts<VALUE: Into<PayloadOptions>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_opts<VALUE: Into<PayloadOptions>>( &mut self, value: VALUE, ) -> &mut Self
опции запроса
Sourcepub fn build(
&self,
) -> Result<DirectNotificationRequest, DirectNotificationRequestBuilderError>
pub fn build( &self, ) -> Result<DirectNotificationRequest, DirectNotificationRequestBuilderError>
Trait Implementations§
Source§impl Clone for DirectNotificationRequestBuilder
impl Clone for DirectNotificationRequestBuilder
Source§fn clone(&self) -> DirectNotificationRequestBuilder
fn clone(&self) -> DirectNotificationRequestBuilder
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 moreAuto Trait Implementations§
impl Freeze for DirectNotificationRequestBuilder
impl RefUnwindSafe for DirectNotificationRequestBuilder
impl Send for DirectNotificationRequestBuilder
impl Sync for DirectNotificationRequestBuilder
impl Unpin for DirectNotificationRequestBuilder
impl UnwindSafe for DirectNotificationRequestBuilder
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