pub struct PreferencesSnapshot {Show 21 fields
pub send_typing_indicators: bool,
pub send_read_receipts: bool,
pub desktop_notifications_enabled: bool,
pub invite_acceptance_notifications_enabled: bool,
pub startup_at_login_enabled: bool,
pub nearby_enabled: bool,
pub nearby_bluetooth_enabled: bool,
pub nearby_lan_enabled: bool,
pub nearby_mailbag_enabled: bool,
pub nostr_relay_urls: Vec<String>,
pub image_proxy_enabled: bool,
pub image_proxy_url: String,
pub image_proxy_key_hex: String,
pub image_proxy_salt_hex: String,
pub muted_chat_ids: Vec<String>,
pub pinned_chat_ids: Vec<String>,
pub blocked_owner_pubkeys: Vec<String>,
pub accepted_owner_pubkeys: Vec<String>,
pub debug_logging_enabled: bool,
pub accept_unknown_direct_messages: bool,
pub mobile_push_server_url: String,
}Fields§
§send_typing_indicators: bool§send_read_receipts: bool§desktop_notifications_enabled: bool§invite_acceptance_notifications_enabled: bool§startup_at_login_enabled: bool§nearby_enabled: bool§nearby_bluetooth_enabled: bool§nearby_lan_enabled: bool§nearby_mailbag_enabled: boolWhether the on-device nearby mailbag actively reads and writes store-and-forward records. When off, the local bag is left alone (so contents survive a toggle off → on cycle) but no new events are stored and the broadcast/replay path skips it.
nostr_relay_urls: Vec<String>§image_proxy_enabled: bool§image_proxy_url: String§image_proxy_key_hex: String§image_proxy_salt_hex: String§muted_chat_ids: Vec<String>§pinned_chat_ids: Vec<String>§blocked_owner_pubkeys: Vec<String>Owner pubkeys (hex) the local user has blocked. Blocking drops the peer from the nostr relay subscription, the mobile push subscription, and hides their thread from the chat list; any further messages from them are also discarded at ingest.
accepted_owner_pubkeys: Vec<String>Owner pubkeys (hex) for which the user has accepted a message
request (Signal-style “whitelist”). A direct chat is treated as
a is_request thread until the peer is in this set; sending an
outgoing message implicitly adds them.
debug_logging_enabled: bool§accept_unknown_direct_messages: bool§mobile_push_server_url: StringUser-configurable notification server URL. Empty string means
“use the platform default” (notifications.iris.to in release,
notifications-sandbox.iris.to in debug). When non-empty, the
shells should pass this as the override to
build_mobile_push_*_subscription_request.
Trait Implementations§
Source§impl Clone for PreferencesSnapshot
impl Clone for PreferencesSnapshot
Source§fn clone(&self) -> PreferencesSnapshot
fn clone(&self) -> PreferencesSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for PreferencesSnapshot
impl<UT> ConvertError<UT> for PreferencesSnapshot
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for PreferencesSnapshot
impl Debug for PreferencesSnapshot
Source§impl Default for PreferencesSnapshot
impl Default for PreferencesSnapshot
Source§impl<UT> FfiConverter<UT> for PreferencesSnapshot
impl<UT> FfiConverter<UT> for PreferencesSnapshot
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> Lift<UT> for PreferencesSnapshot
impl<UT> Lift<UT> for PreferencesSnapshot
Source§impl<UT> LiftRef<UT> for PreferencesSnapshot
impl<UT> LiftRef<UT> for PreferencesSnapshot
Source§impl<UT> LiftReturn<UT> for PreferencesSnapshot
impl<UT> LiftReturn<UT> for PreferencesSnapshot
Source§type ReturnType = <PreferencesSnapshot as Lift<UT>>::FfiType
type ReturnType = <PreferencesSnapshot as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for PreferencesSnapshot
impl<UT> Lower<UT> for PreferencesSnapshot
type FfiType = <PreferencesSnapshot as FfiConverter<UT>>::FfiType
fn lower(obj: Self) -> Self::FfiType
fn write(obj: Self, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Source§impl<UT> LowerError<UT> for PreferencesSnapshot
impl<UT> LowerError<UT> for PreferencesSnapshot
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for PreferencesSnapshot
impl<UT> LowerReturn<UT> for PreferencesSnapshot
Source§type ReturnType = <PreferencesSnapshot as Lower<UT>>::FfiType
type ReturnType = <PreferencesSnapshot as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl PartialEq for PreferencesSnapshot
impl PartialEq for PreferencesSnapshot
Source§fn eq(&self, other: &PreferencesSnapshot) -> bool
fn eq(&self, other: &PreferencesSnapshot) -> bool
self and other values to be equal, and is used by ==.Source§impl<UT> TypeId<UT> for PreferencesSnapshot
impl<UT> TypeId<UT> for PreferencesSnapshot
impl Eq for PreferencesSnapshot
impl StructuralPartialEq for PreferencesSnapshot
Auto Trait Implementations§
impl Freeze for PreferencesSnapshot
impl RefUnwindSafe for PreferencesSnapshot
impl Send for PreferencesSnapshot
impl Sync for PreferencesSnapshot
impl Unpin for PreferencesSnapshot
impl UnsafeUnpin for PreferencesSnapshot
impl UnwindSafe for PreferencesSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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