Struct botx_api::api::v3::chats::set_stealth::models::SetStealthRequestBuilder
source · pub struct SetStealthRequestBuilder { /* private fields */ }Expand description
Builder for SetStealthRequest.
Implementations§
source§impl SetStealthRequestBuilder
impl SetStealthRequestBuilder
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_disable_web<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn with_disable_web<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
(Default: false) - если true - отключает доступ к чату с веб-клиента (по умолчанию false)
sourcepub fn with_burn_in<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn with_burn_in<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
(Default: null) - Время сгорания для прочитавшего, в секундах (по-умолчанию null - выключено)
sourcepub fn with_expire_in<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn with_expire_in<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
(Default: null) - время сгорания для всех участников чата, в секундах (по-умолчанию null - выключено)
sourcepub fn build(&self) -> Result<SetStealthRequest, SetStealthRequestBuilderError>
pub fn build(&self) -> Result<SetStealthRequest, SetStealthRequestBuilderError>
Trait Implementations§
source§impl Clone for SetStealthRequestBuilder
impl Clone for SetStealthRequestBuilder
source§fn clone(&self) -> SetStealthRequestBuilder
fn clone(&self) -> SetStealthRequestBuilder
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 SetStealthRequestBuilder
impl Send for SetStealthRequestBuilder
impl Sync for SetStealthRequestBuilder
impl Unpin for SetStealthRequestBuilder
impl UnwindSafe for SetStealthRequestBuilder
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