Struct botx_api::api::v4::notification::internal::models::InternalNotificationRequestBuilder
source · pub struct InternalNotificationRequestBuilder<TData, TOptions> { /* private fields */ }Expand description
Builder for InternalNotificationRequest.
Implementations§
source§impl<TData: Clone, TOptions: Clone> InternalNotificationRequestBuilder<TData, TOptions>
impl<TData: Clone, TOptions: Clone> InternalNotificationRequestBuilder<TData, TOptions>
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
ID чата
sourcepub fn with_data<VALUE: Into<TData>>(&mut self, value: VALUE) -> &mut Self
pub fn with_data<VALUE: Into<TData>>(&mut self, value: VALUE) -> &mut Self
Пользовательские данные
sourcepub fn with_opts<VALUE: Into<TOptions>>(&mut self, value: VALUE) -> &mut Self
pub fn with_opts<VALUE: Into<TOptions>>(&mut self, value: VALUE) -> &mut Self
(default: {}) - пользовательские опции
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 build(
&self
) -> Result<InternalNotificationRequest<TData, TOptions>, InternalNotificationRequestBuilderError>
pub fn build( &self ) -> Result<InternalNotificationRequest<TData, TOptions>, InternalNotificationRequestBuilderError>
Trait Implementations§
source§impl<TData: Clone, TOptions: Clone> Clone for InternalNotificationRequestBuilder<TData, TOptions>
impl<TData: Clone, TOptions: Clone> Clone for InternalNotificationRequestBuilder<TData, TOptions>
source§fn clone(&self) -> InternalNotificationRequestBuilder<TData, TOptions>
fn clone(&self) -> InternalNotificationRequestBuilder<TData, TOptions>
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<TData, TOptions> RefUnwindSafe for InternalNotificationRequestBuilder<TData, TOptions>where TData: RefUnwindSafe, TOptions: RefUnwindSafe,
impl<TData, TOptions> Send for InternalNotificationRequestBuilder<TData, TOptions>where TData: Send, TOptions: Send,
impl<TData, TOptions> Sync for InternalNotificationRequestBuilder<TData, TOptions>where TData: Sync, TOptions: Sync,
impl<TData, TOptions> Unpin for InternalNotificationRequestBuilder<TData, TOptions>where TData: Unpin, TOptions: Unpin,
impl<TData, TOptions> UnwindSafe for InternalNotificationRequestBuilder<TData, TOptions>where TData: UnwindSafe, TOptions: 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