pub struct Chat {
pub text: String,
pub link: MsgChatLink,
pub owner_sig: Option<LinkOwnerSig>,
}Expand description
Chat invitation message containing a link to a group or direct contact.
Fields§
§text: String§link: MsgChatLink§owner_sig: Option<LinkOwnerSig>Implementations§
Source§impl Chat
impl Chat
pub fn new(link: MsgChatLink) -> Self
pub fn with_text(self, text: impl Into<String>) -> Self
pub fn with_owner_sig(self, sig: LinkOwnerSig) -> Self
Trait Implementations§
Source§impl MessageLike for Chat
impl MessageLike for Chat
type Kind = RichKind
fn into_builder_parts(self) -> (ComposedMessage, RichKind)
Auto Trait Implementations§
impl Freeze for Chat
impl RefUnwindSafe for Chat
impl Send for Chat
impl Sync for Chat
impl Unpin for Chat
impl UnsafeUnpin for Chat
impl UnwindSafe for Chat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more