pub struct AccountSettings {Show 15 fields
pub schema_version: u32,
pub quick_reaction: Option<String>,
pub typing_indicators_enabled: bool,
pub notification_content_privacy: String,
pub media_service: Option<String>,
pub image_upload_quality: String,
pub video_upload_quality: String,
pub preserve_hdr: bool,
pub transcription_locale: Option<String>,
pub domain_replacement_rules_json: String,
pub chat_wallpaper: Option<String>,
pub custom_emoji_references: Vec<CustomEmojiReference>,
pub saved_sticker_references: Vec<String>,
pub seasonal_appearance: Option<String>,
pub unknown_json: String,
}Expand description
Versioned platform-neutral account settings.
Fields§
§schema_version: u32Settings schema version.
quick_reaction: Option<String>Default reaction text or shortcode.
typing_indicators_enabled: boolWhether typing indicators are authored and rendered.
notification_content_privacy: Stringfull, sender, or hidden.
media_service: Option<String>Selected HTTPS media service, absent for deployment default.
image_upload_quality: StringSemantic image quality (low, balanced, or high).
video_upload_quality: StringSemantic video quality (low, balanced, or high).
preserve_hdr: boolWhether supported platforms should retain HDR.
transcription_locale: Option<String>BCP-47 transcription locale, absent for system selection.
domain_replacement_rules_json: StringCanonical JSON array of portable domain replacement rules.
chat_wallpaper: Option<String>Portable wallpaper identifier shared by clients, absent for the default.
custom_emoji_references: Vec<CustomEmojiReference>Validated portable custom emoji references.
saved_sticker_references: Vec<String>Stable saved sticker references.
seasonal_appearance: Option<String>Shared seasonal appearance choice, absent for default.
unknown_json: StringCanonical object containing fields unknown to this SDK version.
Trait Implementations§
Source§impl Clone for AccountSettings
impl Clone for AccountSettings
Source§fn clone(&self) -> AccountSettings
fn clone(&self) -> AccountSettings
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 AccountSettings
impl<UT> ConvertError<UT> for AccountSettings
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for AccountSettings
impl Debug for AccountSettings
Source§impl<'de> Deserialize<'de> for AccountSettings
impl<'de> Deserialize<'de> for AccountSettings
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<UT> FfiConverter<UT> for AccountSettings
impl<UT> FfiConverter<UT> for AccountSettings
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 AccountSettings
impl<UT> Lift<UT> for AccountSettings
Source§impl<UT> LiftRef<UT> for AccountSettings
impl<UT> LiftRef<UT> for AccountSettings
type LiftType = AccountSettings
Source§impl<UT> LiftReturn<UT> for AccountSettings
impl<UT> LiftReturn<UT> for AccountSettings
Source§type ReturnType = <AccountSettings as Lift<UT>>::FfiType
type ReturnType = <AccountSettings 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>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for AccountSettings
impl<UT> Lower<UT> for AccountSettings
Source§impl<UT> LowerError<UT> for AccountSettings
impl<UT> LowerError<UT> for AccountSettings
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for AccountSettings
impl<UT> LowerReturn<UT> for AccountSettings
Source§type ReturnType = <AccountSettings as Lower<UT>>::FfiType
type ReturnType = <AccountSettings as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl PartialEq for AccountSettings
impl PartialEq for AccountSettings
Source§fn eq(&self, other: &AccountSettings) -> bool
fn eq(&self, other: &AccountSettings) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AccountSettings
impl Serialize for AccountSettings
Source§impl<UT> TypeId<UT> for AccountSettings
impl<UT> TypeId<UT> for AccountSettings
const TYPE_ID_META: MetadataBuffer
impl Eq for AccountSettings
impl StructuralPartialEq for AccountSettings
Auto Trait Implementations§
impl Freeze for AccountSettings
impl RefUnwindSafe for AccountSettings
impl Send for AccountSettings
impl Sync for AccountSettings
impl Unpin for AccountSettings
impl UnsafeUnpin for AccountSettings
impl UnwindSafe for AccountSettings
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,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more