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 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 SetStealthRequestBuilder
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