pub enum MsgContent {
Text(String),
Object(MsgObjectContent),
}
Variants§
Text(String)
Object(MsgObjectContent)
Trait Implementations§
Source§impl Clone for MsgContent
impl Clone for MsgContent
Source§fn clone(&self) -> MsgContent
fn clone(&self) -> MsgContent
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 moreSource§impl ProtobufTransform<&MsgContent> for MsgContent
impl ProtobufTransform<&MsgContent> for MsgContent
fn transform(value: &MsgContent) -> BuckyResult<Self>
Source§impl ProtobufTransform<&MsgContent> for Option<MsgContent>
impl ProtobufTransform<&MsgContent> for Option<MsgContent>
fn transform(_value_: &MsgContent) -> BuckyResult<Self>
Source§impl ProtobufTransform<MsgContent> for MsgContent
impl ProtobufTransform<MsgContent> for MsgContent
fn transform(value: MsgContent) -> BuckyResult<Self>
Source§impl ProtobufTransform<Option<MsgContent>> for MsgContent
impl ProtobufTransform<Option<MsgContent>> for MsgContent
fn transform(_value_: Option<MsgContent>) -> BuckyResult<Self>
Auto Trait Implementations§
impl Freeze for MsgContent
impl RefUnwindSafe for MsgContent
impl Send for MsgContent
impl Sync for MsgContent
impl Unpin for MsgContent
impl UnwindSafe for MsgContent
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