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