pub struct GroupSave {Show 15 fields
pub id: Vec<u8>,
pub created_at_ns: i64,
pub membership_state: i32,
pub installations_last_checked: i64,
pub added_by_inbox_id: String,
pub welcome_id: Option<i64>,
pub rotated_at_ns: i64,
pub conversation_type: i32,
pub dm_id: Option<String>,
pub last_message_ns: Option<i64>,
pub message_disappear_from_ns: Option<i64>,
pub message_disappear_in_ns: Option<i64>,
pub metadata: Option<ImmutableMetadataSave>,
pub mutable_metadata: Option<MutableMetadataSave>,
pub paused_for_version: Option<String>,
}Expand description
Proto representation of a stored group
Fields§
§id: Vec<u8>§created_at_ns: i64§membership_state: i32§installations_last_checked: i64§added_by_inbox_id: String§welcome_id: Option<i64>§rotated_at_ns: i64§conversation_type: i32§dm_id: Option<String>§last_message_ns: Option<i64>§message_disappear_from_ns: Option<i64>§message_disappear_in_ns: Option<i64>§metadata: Option<ImmutableMetadataSave>metadata fields
mutable_metadata: Option<MutableMetadataSave>§paused_for_version: Option<String>Implementations§
Source§impl GroupSave
impl GroupSave
Sourcepub fn membership_state(&self) -> GroupMembershipStateSave
pub fn membership_state(&self) -> GroupMembershipStateSave
Returns the enum value of membership_state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_membership_state(&mut self, value: GroupMembershipStateSave)
pub fn set_membership_state(&mut self, value: GroupMembershipStateSave)
Sets membership_state to the provided enum value.
Sourcepub fn welcome_id(&self) -> i64
pub fn welcome_id(&self) -> i64
Returns the value of welcome_id, or the default value if welcome_id is unset.
Sourcepub fn conversation_type(&self) -> ConversationTypeSave
pub fn conversation_type(&self) -> ConversationTypeSave
Returns the enum value of conversation_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_conversation_type(&mut self, value: ConversationTypeSave)
pub fn set_conversation_type(&mut self, value: ConversationTypeSave)
Sets conversation_type to the provided enum value.
Sourcepub fn dm_id(&self) -> &str
pub fn dm_id(&self) -> &str
Returns the value of dm_id, or the default value if dm_id is unset.
Sourcepub fn last_message_ns(&self) -> i64
pub fn last_message_ns(&self) -> i64
Returns the value of last_message_ns, or the default value if last_message_ns is unset.
Sourcepub fn message_disappear_from_ns(&self) -> i64
pub fn message_disappear_from_ns(&self) -> i64
Returns the value of message_disappear_from_ns, or the default value if message_disappear_from_ns is unset.
Sourcepub fn message_disappear_in_ns(&self) -> i64
pub fn message_disappear_in_ns(&self) -> i64
Returns the value of message_disappear_in_ns, or the default value if message_disappear_in_ns is unset.
Sourcepub fn paused_for_version(&self) -> &str
pub fn paused_for_version(&self) -> &str
Returns the value of paused_for_version, or the default value if paused_for_version is unset.
Trait Implementations§
§impl<'de> Deserialize<'de> for GroupSave
impl<'de> Deserialize<'de> for GroupSave
§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 Message for GroupSave
impl Message for GroupSave
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 GroupSave
impl Name for GroupSave
Source§const NAME: &'static str = "GroupSave"
const NAME: &'static str = "GroupSave"
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.group_backup"
const PACKAGE: &'static str = "xmtp.device_sync.group_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.impl StructuralPartialEq for GroupSave
Auto Trait Implementations§
impl Freeze for GroupSave
impl RefUnwindSafe for GroupSave
impl Send for GroupSave
impl Sync for GroupSave
impl Unpin for GroupSave
impl UnsafeUnpin for GroupSave
impl UnwindSafe for GroupSave
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§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<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].