pub struct MsgSecretRetention {
pub text: Duration,
pub poll_event: Duration,
pub bot: Duration,
}Expand description
Per-add-on-kind retention horizons applied to the parent message’s event time. Defaults are derived from verified protocol limits, not guesses.
Fields§
§text: DurationText / MESSAGE_EDIT parents. An edit is only valid when authored within
20 min of the parent — enforced on both send and receive against the
edit’s own timestamp (editTs < parentTs + window), not “now” — so a
validly-authored edit still applies after an offline gap. WhatsApp’s
offline queue can deliver it up to ~30 days later, so a 30-day-offline
receiver still needs the secret; hence a 30-day horizon for delivery.
poll_event: DurationPoll / event parents (poll votes, PollAddOption, EventEdit,
PollEdit). These add-ons have no sender-side time window, so the
parent secret must outlive them generously.
bot: DurationOutbound msmsg bot context secrets.
Trait Implementations§
Source§impl Clone for MsgSecretRetention
impl Clone for MsgSecretRetention
Source§fn clone(&self) -> MsgSecretRetention
fn clone(&self) -> MsgSecretRetention
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MsgSecretRetention
Source§impl Debug for MsgSecretRetention
impl Debug for MsgSecretRetention
Source§impl Default for MsgSecretRetention
impl Default for MsgSecretRetention
Source§fn default() -> MsgSecretRetention
fn default() -> MsgSecretRetention
Auto Trait Implementations§
impl Freeze for MsgSecretRetention
impl RefUnwindSafe for MsgSecretRetention
impl Send for MsgSecretRetention
impl Sync for MsgSecretRetention
impl Unpin for MsgSecretRetention
impl UnsafeUnpin for MsgSecretRetention
impl UnwindSafe for MsgSecretRetention
Blanket Implementations§
Source§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
Source§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read moreSource§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read moreSource§fn aggregate_filter<P>(self, f: P) -> Self::Output
fn aggregate_filter<P>(self, f: P) -> Self::Output
Source§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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self to an expression for Diesel’s query builder. Read more