pub struct StoredGroupBuilder { /* private fields */ }Expand description
Builder for StoredGroup.
Implementations§
Source§impl StoredGroupBuilder
impl StoredGroupBuilder
Sourcepub fn id<VALUE: Into<GroupId>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<GroupId>>(&mut self, value: VALUE) -> &mut Self
Randomly generated ID by group creator
Sourcepub fn created_at_ns<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn created_at_ns<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
Based on timestamp of this welcome message
Sourcepub fn membership_state<VALUE: Into<GroupMembershipState>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn membership_state<VALUE: Into<GroupMembershipState>>( &mut self, value: VALUE, ) -> &mut Self
Enum, GroupMembershipState representing access to the group
Sourcepub fn installations_last_checked<VALUE: Into<i64>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn installations_last_checked<VALUE: Into<i64>>( &mut self, value: VALUE, ) -> &mut Self
Track when the latest, most recent installations were checked
Sourcepub fn added_by_inbox_id<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn added_by_inbox_id<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
The inbox_id of who added the user to a group.
Sourcepub fn sequence_id<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn sequence_id<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
The sequence id of the welcome message
Sourcepub fn rotated_at_ns<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn rotated_at_ns<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
The last time the leaf node encryption key was rotated
Sourcepub fn conversation_type<VALUE: Into<ConversationType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn conversation_type<VALUE: Into<ConversationType>>( &mut self, value: VALUE, ) -> &mut Self
Enum, ConversationType signifies the group conversation type which extends to who can access it.
Sourcepub fn dm_id<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn dm_id<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The inbox_id of the DM target
Sourcepub fn last_message_ns<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn last_message_ns<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
Timestamp of when the last message was sent for this group (updated automatically in a trigger)
Sourcepub fn message_disappear_from_ns<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn message_disappear_from_ns<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
The Time in NS when the messages should be deleted
Sourcepub fn message_disappear_in_ns<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn message_disappear_in_ns<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
How long a message in the group can live in NS
Sourcepub fn paused_for_version<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn paused_for_version<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
The version of the protocol that the group is paused for, None is not paused
pub fn maybe_forked<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn fork_details<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn should_publish_commit_log<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn should_publish_commit_log<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether the user should publish the commit log for this group
Sourcepub fn commit_log_public_key<VALUE: Into<Option<Vec<u8>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn commit_log_public_key<VALUE: Into<Option<Vec<u8>>>>( &mut self, value: VALUE, ) -> &mut Self
The consensus public key of the commit log for this group Derived from the first entry of the commit log
Sourcepub fn is_commit_log_forked<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn is_commit_log_forked<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
Whether the local commit log has diverged from the remote commit log NULL if the remote commit log is not up to date yet
Sourcepub fn has_pending_leave_request<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn has_pending_leave_request<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
Whether the pending-remove list is empty NULL if the pending-remove didn’t receive an update yet
Sourcepub fn push_override<VALUE: Into<Option<i32>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn push_override<VALUE: Into<Option<i32>>>( &mut self, value: VALUE, ) -> &mut Self
Optional notification rule for this conversation.
Sourcepub fn build(&self) -> Result<StoredGroup, StorageError>
pub fn build(&self) -> Result<StoredGroup, StorageError>
Trait Implementations§
Source§impl Clone for StoredGroupBuilder
impl Clone for StoredGroupBuilder
Source§fn clone(&self) -> StoredGroupBuilder
fn clone(&self) -> StoredGroupBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for StoredGroupBuilder
impl RefUnwindSafe for StoredGroupBuilder
impl Send for StoredGroupBuilder
impl Sync for StoredGroupBuilder
impl Unpin for StoredGroupBuilder
impl UnsafeUnpin for StoredGroupBuilder
impl UnwindSafe for StoredGroupBuilder
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<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].