pub struct SiteConfig {Show 18 fields
pub title: String,
pub login_captcha: bool,
pub reg_captcha: bool,
pub forget_captcha: bool,
pub email_active: bool,
pub themes: String,
pub default_theme: String,
pub home_view_method: String,
pub share_view_method: String,
pub authn: bool,
pub user: Option<User>,
pub captcha_recaptcha_key: String,
pub captcha_type: String,
pub tcaptcha_captcha_app_id: String,
pub register_enabled: bool,
pub app_promotion: bool,
pub wopi_exts: Option<Value>,
pub direct_link_batch_size: i64,
}Expand description
Site configuration for v3 API
Fields§
§title: String§login_captcha: bool§reg_captcha: bool§forget_captcha: bool§email_active: bool§themes: String§default_theme: String§home_view_method: String§authn: bool§user: Option<User>§captcha_recaptcha_key: String§captcha_type: String§tcaptcha_captcha_app_id: String§register_enabled: bool§app_promotion: bool§wopi_exts: Option<Value>§direct_link_batch_size: i64Trait Implementations§
Source§impl Clone for SiteConfig
impl Clone for SiteConfig
Source§fn clone(&self) -> SiteConfig
fn clone(&self) -> SiteConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SiteConfig
impl Debug for SiteConfig
Source§impl Default for SiteConfig
impl Default for SiteConfig
Source§fn default() -> SiteConfig
fn default() -> SiteConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SiteConfig
impl<'de> Deserialize<'de> for SiteConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SiteConfig
impl RefUnwindSafe for SiteConfig
impl Send for SiteConfig
impl Sync for SiteConfig
impl Unpin for SiteConfig
impl UnwindSafe for SiteConfig
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
Mutably borrows from an owned value. Read more