Skip to main content

ControlSettings

Struct ControlSettings 

Source
pub struct ControlSettings<'a> {
Show 29 fields pub account_list: Option<bool>, pub back: Option<bool>, pub comment_button: Option<bool>, pub copy_author_did: Option<bool>, pub copy_button: Option<bool>, pub copy_post_link: Option<bool>, pub copy_post_text: Option<bool>, pub delete: Option<bool>, pub engage_button: Option<bool>, pub feed_switcher: Option<bool>, pub fetch: Option<bool>, pub flip: Option<bool>, pub forward: Option<bool>, pub fullscreen: Option<bool>, pub leaflet_publications: Option<bool>, pub like: Option<bool>, pub list: Option<bool>, pub multi_engage_button: Option<bool>, pub multi_repost_button: Option<bool>, pub position_button: Option<bool>, pub post_list: Option<bool>, pub quick_access: Option<bool>, pub quote: Option<bool>, pub relationship_button: Option<bool>, pub reply: Option<bool>, pub repost: Option<bool>, pub shuffle: Option<bool>, pub text_only_mode: Option<bool>, pub extra_data: Option<BTreeMap<SmolStr, Data<'a>>>,
}
Expand description

Control button visibility settings

Fields§

§account_list: Option<bool>

Show account list button

§back: Option<bool>

Show back button

§comment_button: Option<bool>

Show expandable comment button

§copy_author_did: Option<bool>

Show copy author DID button

§copy_button: Option<bool>

Show expandable copy button

§copy_post_link: Option<bool>

Show copy post link button

§copy_post_text: Option<bool>

Show copy post text button

§delete: Option<bool>

Show delete button

§engage_button: Option<bool>

Show expandable engage button

§feed_switcher: Option<bool>

Show feed switcher button

§fetch: Option<bool>

Show fetch button

§flip: Option<bool>

Show flip button

§forward: Option<bool>

Show forward button

§fullscreen: Option<bool>

Show fullscreen button

§leaflet_publications: Option<bool>

Show leaflet publications button

§like: Option<bool>

Show like button

§list: Option<bool>

Show list button

§multi_engage_button: Option<bool>

Show expandable multi-engage button

§multi_repost_button: Option<bool>

Show expandable multi-repost button

§position_button: Option<bool>

Show position button

§post_list: Option<bool>

Show post list button

§quick_access: Option<bool>

Show quick access button

§quote: Option<bool>

Show quote button

§relationship_button: Option<bool>

Show relationship button

§reply: Option<bool>

Show reply button

§repost: Option<bool>

Show repost button

§shuffle: Option<bool>

Show shuffle button

§text_only_mode: Option<bool>

Show text only mode button

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

Trait Implementations§

Source§

impl<'a> Clone for ControlSettings<'a>

Source§

fn clone(&self) -> ControlSettings<'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 ControlSettings<'a>

Source§

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

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

impl<'a> Default for ControlSettings<'a>

Source§

fn default() -> ControlSettings<'a>

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

impl<'de: 'a, 'a> Deserialize<'de> for ControlSettings<'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 ControlSettings<'a>

Source§

type Output = ControlSettings<'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 ControlSettings<'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 ControlSettings<'a>

Source§

fn eq(&self, other: &ControlSettings<'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 ControlSettings<'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 ControlSettings<'a>

Source§

impl<'a> StructuralPartialEq for ControlSettings<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for ControlSettings<'a>

§

impl<'a> RefUnwindSafe for ControlSettings<'a>

§

impl<'a> Send for ControlSettings<'a>

§

impl<'a> Sync for ControlSettings<'a>

§

impl<'a> Unpin for ControlSettings<'a>

§

impl<'a> UnsafeUnpin for ControlSettings<'a>

§

impl<'a> UnwindSafe for ControlSettings<'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>,