CustomConfigParameters

Struct CustomConfigParameters 

Source
pub struct CustomConfigParameters {
Show 73 fields pub absolute_and_relative_dates: Option<bool>, pub absolute_dates: Option<bool>, pub allow_anon: Option<bool>, pub allow_anon_flag: Option<bool>, pub allow_anon_votes: Option<bool>, pub allowed_languages: Option<Option<Vec<String>>>, pub collapse_replies: Option<bool>, pub comment_count_format: Option<Option<String>>, pub comment_html_rendering_mode: Option<CommentHtmlRenderingMode>, pub comment_thread_delete_mode: Option<Option<CommentThreadDeletionMode>>, pub commenter_name_format: Option<Option<CommenterNameFormats>>, pub count_above_toggle: Option<i32>, pub custom_css: Option<Option<String>>, pub default_avatar_src: Option<Option<String>>, pub default_sort_direction: Option<Option<SortDirections>>, pub default_username: Option<Option<String>>, pub disable_auto_admin_migration: Option<bool>, pub disable_auto_hash_tag_creation: Option<bool>, pub disable_blocking: Option<bool>, pub disable_commenter_comment_delete: Option<bool>, pub disable_commenter_comment_edit: Option<bool>, pub disable_email_inputs: Option<bool>, pub disable_live_commenting: Option<bool>, pub disable_notification_bell: Option<bool>, pub disable_profiles: Option<bool>, pub disable_success_message: Option<bool>, pub disable_toolbar: Option<bool>, pub disable_unverified_label: Option<bool>, pub disable_voting: Option<bool>, pub enable_commenter_links: Option<bool>, pub enable_search: Option<bool>, pub enable_spoilers: Option<bool>, pub enable_third_party_cookie_bypass: Option<bool>, pub enable_view_counts: Option<bool>, pub enable_vote_list: Option<bool>, pub enable_wysiwyg: Option<bool>, pub gif_rating: Option<GifRating>, pub has_dark_background: Option<bool>, pub header_html: Option<Option<String>>, pub hide_avatars: Option<bool>, pub hide_comments_under_count_text_format: Option<Option<String>>, pub image_content_profanity_level: Option<ImageContentProfanityLevel>, pub input_after_comments: Option<bool>, pub limit_comments_by_groups: Option<bool>, pub locale: Option<Option<String>>, pub max_comment_character_length: Option<Option<i32>>, pub max_comment_created_count_pupm: Option<Option<i32>>, pub no_custom_config: Option<bool>, pub no_image_uploads: Option<bool>, pub no_styles: Option<bool>, pub page_size: Option<Option<i32>>, pub readonly: Option<bool>, pub no_new_root_comments: Option<bool>, pub require_sso: Option<bool>, pub enable_resize_handle: Option<bool>, pub restricted_link_domains: Option<Option<Vec<String>>>, pub show_badges_in_top_bar: Option<bool>, pub show_comment_save_success: Option<bool>, pub show_live_right_away: Option<bool>, pub show_question: Option<bool>, pub spam_rules: Option<Vec<SpamRule>>, pub sso_sec_lvl: Option<SsoSecurityLevel>, pub translations: Option<Option<HashMap<String, String>>>, pub use_show_comments_toggle: Option<bool>, pub use_single_line_comment_input: Option<bool>, pub vote_style: Option<VoteStyle>, pub widget_question_id: Option<String>, pub widget_question_results_style: Option<CommentQuestionResultsRenderingType>, pub widget_question_style: Option<QuestionRenderingType>, pub widget_question_when_to_save: Option<QuestionWhenSave>, pub widget_questions_required: Option<CommentQuestionsRequired>, pub widget_sub_question_visibility: Option<QuestionSubQuestionVisibility>, pub wrap: Option<bool>,
}

Fields§

§absolute_and_relative_dates: Option<bool>§absolute_dates: Option<bool>§allow_anon: Option<bool>§allow_anon_flag: Option<bool>§allow_anon_votes: Option<bool>§allowed_languages: Option<Option<Vec<String>>>§collapse_replies: Option<bool>§comment_count_format: Option<Option<String>>§comment_html_rendering_mode: Option<CommentHtmlRenderingMode>§comment_thread_delete_mode: Option<Option<CommentThreadDeletionMode>>§commenter_name_format: Option<Option<CommenterNameFormats>>§count_above_toggle: Option<i32>§custom_css: Option<Option<String>>§default_avatar_src: Option<Option<String>>§default_sort_direction: Option<Option<SortDirections>>§default_username: Option<Option<String>>§disable_auto_admin_migration: Option<bool>§disable_auto_hash_tag_creation: Option<bool>§disable_blocking: Option<bool>§disable_commenter_comment_delete: Option<bool>§disable_commenter_comment_edit: Option<bool>§disable_email_inputs: Option<bool>§disable_live_commenting: Option<bool>§disable_notification_bell: Option<bool>§disable_profiles: Option<bool>§disable_success_message: Option<bool>§disable_toolbar: Option<bool>§disable_unverified_label: Option<bool>§disable_voting: Option<bool>§enable_commenter_links: Option<bool>§enable_search: Option<bool>§enable_spoilers: Option<bool>§enable_third_party_cookie_bypass: Option<bool>§enable_view_counts: Option<bool>§enable_vote_list: Option<bool>§enable_wysiwyg: Option<bool>§gif_rating: Option<GifRating>§has_dark_background: Option<bool>§header_html: Option<Option<String>>§hide_avatars: Option<bool>§hide_comments_under_count_text_format: Option<Option<String>>§image_content_profanity_level: Option<ImageContentProfanityLevel>§input_after_comments: Option<bool>§limit_comments_by_groups: Option<bool>§locale: Option<Option<String>>§max_comment_character_length: Option<Option<i32>>§max_comment_created_count_pupm: Option<Option<i32>>§no_custom_config: Option<bool>§no_image_uploads: Option<bool>§no_styles: Option<bool>§page_size: Option<Option<i32>>§readonly: Option<bool>§no_new_root_comments: Option<bool>§require_sso: Option<bool>§enable_resize_handle: Option<bool>§restricted_link_domains: Option<Option<Vec<String>>>§show_badges_in_top_bar: Option<bool>§show_comment_save_success: Option<bool>§show_live_right_away: Option<bool>§show_question: Option<bool>§spam_rules: Option<Vec<SpamRule>>§sso_sec_lvl: Option<SsoSecurityLevel>§translations: Option<Option<HashMap<String, String>>>

Construct a type with a set of properties K of type T

§use_show_comments_toggle: Option<bool>§use_single_line_comment_input: Option<bool>§vote_style: Option<VoteStyle>§widget_question_id: Option<String>§widget_question_results_style: Option<CommentQuestionResultsRenderingType>§widget_question_style: Option<QuestionRenderingType>§widget_question_when_to_save: Option<QuestionWhenSave>§widget_questions_required: Option<CommentQuestionsRequired>§widget_sub_question_visibility: Option<QuestionSubQuestionVisibility>§wrap: Option<bool>

Implementations§

Trait Implementations§

Source§

impl Clone for CustomConfigParameters

Source§

fn clone(&self) -> CustomConfigParameters

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 Debug for CustomConfigParameters

Source§

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

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

impl Default for CustomConfigParameters

Source§

fn default() -> CustomConfigParameters

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

impl<'de> Deserialize<'de> for CustomConfigParameters

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 PartialEq for CustomConfigParameters

Source§

fn eq(&self, other: &CustomConfigParameters) -> 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 Serialize for CustomConfigParameters

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 StructuralPartialEq for CustomConfigParameters

Auto Trait Implementations§

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<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<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>,