Struct botx_api::api::v4::notification::direct::models::DirectNotificationRequestBuilder
source · 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 copy 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 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