pub struct CreateChatRequestBuilder { /* private fields */ }Expand description
Builder for CreateChatRequest.
Implementations§
source§impl CreateChatRequestBuilder
impl CreateChatRequestBuilder
sourcepub fn with_description<VALUE: Into<String>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn with_description<VALUE: Into<String>>( &mut self, value: VALUE ) -> &mut Self
(Default: null) - описание чата
sourcepub fn with_chat_type<VALUE: Into<ChatType>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn with_chat_type<VALUE: Into<ChatType>>( &mut self, value: VALUE ) -> &mut Self
Тип чата (chat|group_chat|channel)
sourcepub fn with_members<VALUE: Into<Vec<Uuid>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn with_members<VALUE: Into<Vec<Uuid>>>( &mut self, value: VALUE ) -> &mut Self
Список HUID участников чата
sourcepub fn with_avatar<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn with_avatar<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
(Default: null) - аватар чата в формате data URL + base64 data (RFC 2397)
(Default: false) - если true, то созданный чат будет иметь признаки шаред чата
sourcepub fn build(&self) -> Result<CreateChatRequest, CreateChatRequestBuilderError>
pub fn build(&self) -> Result<CreateChatRequest, CreateChatRequestBuilderError>
Trait Implementations§
source§impl Clone for CreateChatRequestBuilder
impl Clone for CreateChatRequestBuilder
source§fn clone(&self) -> CreateChatRequestBuilder
fn clone(&self) -> CreateChatRequestBuilder
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 CreateChatRequestBuilder
impl Send for CreateChatRequestBuilder
impl Sync for CreateChatRequestBuilder
impl Unpin for CreateChatRequestBuilder
impl UnwindSafe for CreateChatRequestBuilder
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