pub struct GroupMessageSave {Show 19 fields
pub id: Vec<u8>,
pub group_id: Vec<u8>,
pub decrypted_message_bytes: Vec<u8>,
pub sent_at_ns: i64,
pub kind: i32,
pub sender_installation_id: Vec<u8>,
pub sender_inbox_id: String,
pub delivery_status: i32,
pub content_type_save: i32,
pub version_major: i32,
pub version_minor: i32,
pub authority_id: String,
pub reference_id: Option<Vec<u8>>,
pub sequence_id: Option<i64>,
pub originator_id: Option<i64>,
pub content_type: String,
pub expires_at_ns: Option<i64>,
pub expiry_known: Option<bool>,
pub deleted_by_inbox_id: Option<String>,
}Expand description
Proto representation of a stored group message
Fields§
§id: Vec<u8>§group_id: Vec<u8>§decrypted_message_bytes: Vec<u8>§sent_at_ns: i64§kind: i32§sender_installation_id: Vec<u8>§sender_inbox_id: String§delivery_status: i32§content_type_save: i32version_major: i32§version_minor: i32§reference_id: Option<Vec<u8>>§sequence_id: Option<i64>§originator_id: Option<i64>§content_type: String§expires_at_ns: Option<i64>§expiry_known: Option<bool>§deleted_by_inbox_id: Option<String>set when deleted for everyone; content is then empty
Implementations§
Source§impl GroupMessageSave
impl GroupMessageSave
Sourcepub fn kind(&self) -> GroupMessageKindSave
pub fn kind(&self) -> GroupMessageKindSave
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: GroupMessageKindSave)
pub fn set_kind(&mut self, value: GroupMessageKindSave)
Sets kind to the provided enum value.
Sourcepub fn delivery_status(&self) -> DeliveryStatusSave
pub fn delivery_status(&self) -> DeliveryStatusSave
Returns the enum value of delivery_status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_delivery_status(&mut self, value: DeliveryStatusSave)
pub fn set_delivery_status(&mut self, value: DeliveryStatusSave)
Sets delivery_status to the provided enum value.
Sourcepub fn content_type_save(&self) -> ContentTypeSave
pub fn content_type_save(&self) -> ContentTypeSave
Returns the enum value of content_type_save, or the default if the field is set to an invalid enum value.
Sourcepub fn set_content_type_save(&mut self, value: ContentTypeSave)
pub fn set_content_type_save(&mut self, value: ContentTypeSave)
Sets content_type_save to the provided enum value.
Sourcepub fn reference_id(&self) -> &[u8] ⓘ
pub fn reference_id(&self) -> &[u8] ⓘ
Returns the value of reference_id, or the default value if reference_id is unset.
Sourcepub fn sequence_id(&self) -> i64
pub fn sequence_id(&self) -> i64
Returns the value of sequence_id, or the default value if sequence_id is unset.
Sourcepub fn originator_id(&self) -> i64
pub fn originator_id(&self) -> i64
Returns the value of originator_id, or the default value if originator_id is unset.
Sourcepub fn expires_at_ns(&self) -> i64
pub fn expires_at_ns(&self) -> i64
Returns the value of expires_at_ns, or the default value if expires_at_ns is unset.
Sourcepub fn expiry_known(&self) -> bool
pub fn expiry_known(&self) -> bool
Returns the value of expiry_known, or the default value if expiry_known is unset.
Sourcepub fn deleted_by_inbox_id(&self) -> &str
pub fn deleted_by_inbox_id(&self) -> &str
Returns the value of deleted_by_inbox_id, or the default value if deleted_by_inbox_id is unset.
Trait Implementations§
Source§impl Clone for GroupMessageSave
impl Clone for GroupMessageSave
Source§fn clone(&self) -> GroupMessageSave
fn clone(&self) -> GroupMessageSave
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GroupMessageSave
impl Debug for GroupMessageSave
Source§impl Default for GroupMessageSave
impl Default for GroupMessageSave
Source§impl<'de> Deserialize<'de> for GroupMessageSave
impl<'de> Deserialize<'de> for GroupMessageSave
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Hash for GroupMessageSave
impl Hash for GroupMessageSave
Source§impl Message for GroupMessageSave
impl Message for GroupMessageSave
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Name for GroupMessageSave
impl Name for GroupMessageSave
Source§const NAME: &'static str = "GroupMessageSave"
const NAME: &'static str = "GroupMessageSave"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "xmtp.device_sync.message_backup"
const PACKAGE: &'static str = "xmtp.device_sync.message_backup"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for GroupMessageSave
impl PartialEq for GroupMessageSave
Source§fn eq(&self, other: &GroupMessageSave) -> bool
fn eq(&self, other: &GroupMessageSave) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for GroupMessageSave
impl Serialize for GroupMessageSave
impl Eq for GroupMessageSave
impl StructuralPartialEq for GroupMessageSave
Auto Trait Implementations§
impl Freeze for GroupMessageSave
impl RefUnwindSafe for GroupMessageSave
impl Send for GroupMessageSave
impl Sync for GroupMessageSave
impl Unpin for GroupMessageSave
impl UnsafeUnpin for GroupMessageSave
impl UnwindSafe for GroupMessageSave
Blanket Implementations§
§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read more§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read more§fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].