AdminMeta

Struct AdminMeta 

Source
pub struct AdminMeta {
Show 33 fields pub use_star_for_reaction_fallback: bool, pub pinned_users: Vec<String>, pub hidden_tags: Vec<String>, pub blocked_hosts: Vec<String>, pub hcaptcha_secret_key: Option<String>, pub recaptcha_secret_key: Option<String>, pub proxy_account_id: Option<Id<User>>, pub twitter_consumer_key: Option<String>, pub twitter_consumer_secret: Option<String>, pub github_client_id: Option<String>, pub github_client_secret: Option<String>, pub discord_client_id: Option<String>, pub discord_client_secret: Option<String>, pub summaly_proxy: Option<Url>, pub email: Option<String>, pub smtp_secure: bool, pub smtp_host: Option<String>, pub smtp_port: Option<u16>, pub smtp_user: Option<String>, pub smtp_pass: Option<String>, pub sw_private_key: Option<String>, pub use_object_storage: bool, pub object_storage_base_url: Option<Url>, pub object_storage_bucket: Option<String>, pub object_storage_prefix: Option<String>, pub object_storage_endpoint: Option<String>, pub object_storage_region: Option<String>, pub object_storage_port: Option<u16>, pub object_storage_access_key: Option<String>, pub object_storage_secret_key: Option<String>, pub object_storage_use_ssl: bool, pub object_storage_use_proxy: bool, pub object_storage_set_public_read: bool,
}

Fields§

§use_star_for_reaction_fallback: bool§pinned_users: Vec<String>§hidden_tags: Vec<String>§blocked_hosts: Vec<String>§hcaptcha_secret_key: Option<String>
Available on crate feature 12-37-0 only.
§recaptcha_secret_key: Option<String>§proxy_account_id: Option<Id<User>>§twitter_consumer_key: Option<String>§twitter_consumer_secret: Option<String>§github_client_id: Option<String>§github_client_secret: Option<String>§discord_client_id: Option<String>§discord_client_secret: Option<String>§summaly_proxy: Option<Url>§email: Option<String>§smtp_secure: bool§smtp_host: Option<String>§smtp_port: Option<u16>§smtp_user: Option<String>§smtp_pass: Option<String>§sw_private_key: Option<String>§use_object_storage: bool§object_storage_base_url: Option<Url>§object_storage_bucket: Option<String>§object_storage_prefix: Option<String>§object_storage_endpoint: Option<String>§object_storage_region: Option<String>§object_storage_port: Option<u16>§object_storage_access_key: Option<String>§object_storage_secret_key: Option<String>§object_storage_use_ssl: bool§object_storage_use_proxy: bool
Available on crate feature 12-31-0 only.
§object_storage_set_public_read: bool
Available on crate feature 12-47-0 only.

Trait Implementations§

Source§

impl Clone for AdminMeta

Source§

fn clone(&self) -> AdminMeta

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 AdminMeta

Source§

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

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

impl<'de> Deserialize<'de> for AdminMeta

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 Serialize for AdminMeta

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

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, 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> 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,