Skip to main content

BehaviorSettings

Struct BehaviorSettings 

Source
pub struct BehaviorSettings<'a> {
Show 50 fields pub animation_timing: Option<AnimationTiming<'a>>, pub anisota_only_mode: Option<bool>, pub audio_enabled: Option<bool>, pub batch_notification_types: Option<BatchNotificationTypes<'a>>, pub batch_notifications: Option<bool>, pub bypass_detached_quotes: Option<bool>, pub combine_relationship_and_follower_filters: Option<bool>, pub confirm_deletes: Option<bool>, pub confirm_draft_saves: Option<bool>, pub default_home_page: Option<CowStr<'a>>, pub default_post_target: Option<CowStr<'a>>, pub feed_cache_length: Option<i64>, pub filter_by_follower_ratio: Option<bool>, pub filter_notification_types: Option<FilterNotificationTypes<'a>>, pub filter_notifications_by_followers: Option<bool>, pub filter_notifications_by_relationship: Option<bool>, pub filter_relationship_types: Option<FilterRelationshipTypes<'a>>, pub force_chronological_sort: Option<bool>, pub fullscreen_behavior: Option<CowStr<'a>>, pub hide_interacted_posts: Option<bool>, pub hide_notification_count: Option<bool>, pub hide_read_posts: Option<bool>, pub hide_reposts: Option<HideReposts<'a>>, pub highlight_by_follower_ratio: Option<bool>, pub highlight_max_follower_count: Option<i64>, pub highlight_min_follower_count: Option<CowStr<'a>>, pub highlight_min_follower_ratio: Option<CowStr<'a>>, pub highlight_notification_types: Option<HighlightNotificationTypes<'a>>, pub highlight_notifications: Option<bool>, pub include_reply_engagement: Option<bool>, pub keyboard_shortcuts: Option<KeyboardShortcuts<'a>>, pub max_follower_count: Option<i64>, pub min_follower_count: Option<CowStr<'a>>, pub min_follower_ratio: Option<CowStr<'a>>, pub moderation_settings: Option<ModerationSettings<'a>>, pub post_drafts: Option<bool>, pub reverse_feed_order: Option<bool>, pub show_blocked_posts: Option<bool>, pub show_new_highlights_section: Option<bool>, pub show_notification_sections: Option<bool>, pub show_older_section: Option<bool>, pub show_rarity_in_header: Option<bool>, pub show_recently_read_section: Option<bool>, pub show_thread_suggestion: Option<bool>, pub show_unread_section: Option<bool>, pub soundscape: Option<CowStr<'a>>, pub stats_visible_sections: Option<StatsVisibleSections<'a>>, pub text_only_mode: Option<bool>, pub track_read_posts: Option<bool>, pub extra_data: Option<BTreeMap<SmolStr, Data<'a>>>,
}
Expand description

App behavior and functionality settings

Fields§

§animation_timing: Option<AnimationTiming<'a>>§anisota_only_mode: Option<bool>

Show only Anisota posts in profiles instead of regular Bluesky posts

§audio_enabled: Option<bool>

Whether background audio/soundscapes are enabled by default

§batch_notification_types: Option<BatchNotificationTypes<'a>>§batch_notifications: Option<bool>

Group similar notifications together

§bypass_detached_quotes: Option<bool>

Bypass detached quotes to see the full content that was removed by the author

§combine_relationship_and_follower_filters: Option<bool>

When enabled, show notifications that match either relationship OR follower count filters

§confirm_deletes: Option<bool>

Show confirmation before deleting

§confirm_draft_saves: Option<bool>

Show warning before saving drafts

§default_home_page: Option<CowStr<'a>>

Default page to show on app load

§default_post_target: Option<CowStr<'a>>

Default publishing target for new posts

§feed_cache_length: Option<i64>

How long to cache feed position in minutes (30, 60, 360, 720, 1440, 10080)

§filter_by_follower_ratio: Option<bool>

Filter by follower to following ratio

§filter_notification_types: Option<FilterNotificationTypes<'a>>§filter_notifications_by_followers: Option<bool>

Filter notifications by follower count

§filter_notifications_by_relationship: Option<bool>

Filter notifications based on relationship with the author

§filter_relationship_types: Option<FilterRelationshipTypes<'a>>§force_chronological_sort: Option<bool>

Force chronological sorting of posts

§fullscreen_behavior: Option<CowStr<'a>>

Fullscreen behavior mode: fullscreen (show control row), immersive (hide all UI), or cycle (cycle through states)

§hide_interacted_posts: Option<bool>

Hide posts that have been liked or reposted to focus on new content

§hide_notification_count: Option<bool>

Hide the exact notification count in the corner element, always showing ‘notifications’ instead

§hide_read_posts: Option<bool>

Hide posts that have been read

§hide_reposts: Option<HideReposts<'a>>§highlight_by_follower_ratio: Option<bool>

Also require a minimum follower-to-following ratio for highlighting

§highlight_max_follower_count: Option<i64>

Maximum follower count for notification highlighting

§highlight_min_follower_count: Option<CowStr<'a>>

Minimum follower count for notification highlighting (stored as string or integer)

§highlight_min_follower_ratio: Option<CowStr<'a>>

Minimum follower-to-following ratio for highlighting (stored as string)

§highlight_notification_types: Option<HighlightNotificationTypes<'a>>§highlight_notifications: Option<bool>

Enable notification highlighting to surface important notifications from notable accounts

§include_reply_engagement: Option<bool>

Include engagement metrics from reply posts in stats calculations

§keyboard_shortcuts: Option<KeyboardShortcuts<'a>>§max_follower_count: Option<i64>

Maximum follower count for notification filtering

§min_follower_count: Option<CowStr<'a>>

Minimum follower count for notification filtering (stored as string)

§min_follower_ratio: Option<CowStr<'a>>

Minimum follower ratio for filtering (stored as string)

§moderation_settings: Option<ModerationSettings<'a>>§post_drafts: Option<bool>

Enable post drafts feature

§reverse_feed_order: Option<bool>

Show newest posts first

§show_blocked_posts: Option<bool>

Show content from users you have blocked

§show_new_highlights_section: Option<bool>

Show New Highlights section in notifications

§show_notification_sections: Option<bool>

Enable notification sections (New Highlights, Unread, Recently Read, Older)

§show_older_section: Option<bool>

Show Older section in notifications

§show_rarity_in_header: Option<bool>

Display rarity indicator and rate in the stats modal header

§show_recently_read_section: Option<bool>

Show Recently Read section in notifications

§show_thread_suggestion: Option<bool>

Show thread suggestion when typing beyond character limit in post composer

§show_unread_section: Option<bool>

Show Unread section in notifications

§soundscape: Option<CowStr<'a>>

Selected background audio soundscape

§stats_visible_sections: Option<StatsVisibleSections<'a>>§text_only_mode: Option<bool>

Filter out posts with images and videos for distraction-free reading

§track_read_posts: Option<bool>

Track which posts have been read

§extra_data: Option<BTreeMap<SmolStr, Data<'a>>>

Trait Implementations§

Source§

impl<'a> Clone for BehaviorSettings<'a>

Source§

fn clone(&self) -> BehaviorSettings<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for BehaviorSettings<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for BehaviorSettings<'a>

Source§

fn default() -> BehaviorSettings<'a>

Returns the “default value” for a type. Read more
Source§

impl<'de: 'a, 'a> Deserialize<'de> for BehaviorSettings<'a>

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'a> IntoStatic for BehaviorSettings<'a>

Source§

type Output = BehaviorSettings<'static>

The “owned” variant of the type. For Cow<'a, str>, this is Cow<'static, str>, for example.
Source§

fn into_static(self) -> Self::Output

Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§

impl<'a> LexiconSchema for BehaviorSettings<'a>

Source§

fn nsid() -> &'static str

The NSID for this type’s primary definition Read more
Source§

fn def_name() -> &'static str

The definition name within the lexicon document Read more
Source§

fn lexicon_doc() -> LexiconDoc<'static>

Generate the lexicon document for this type Read more
Source§

fn validate(&self) -> Result<(), ConstraintError>

Validate an instance against lexicon constraints Read more
Source§

fn schema_id() -> CowStr<'static>

The schema ID for this type Read more
Source§

fn inline_schema() -> bool

Whether this type should be inlined vs referenced Read more
Source§

impl<'a> PartialEq for BehaviorSettings<'a>

Source§

fn eq(&self, other: &BehaviorSettings<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Serialize for BehaviorSettings<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a> Eq for BehaviorSettings<'a>

Source§

impl<'a> StructuralPartialEq for BehaviorSettings<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for BehaviorSettings<'a>

§

impl<'a> RefUnwindSafe for BehaviorSettings<'a>

§

impl<'a> Send for BehaviorSettings<'a>

§

impl<'a> Sync for BehaviorSettings<'a>

§

impl<'a> Unpin for BehaviorSettings<'a>

§

impl<'a> UnsafeUnpin for BehaviorSettings<'a>

§

impl<'a> UnwindSafe for BehaviorSettings<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,