pub enum ServerSettingValue {
}
Expand description
Server Setting Values
Variants§
Version(String)
BaseUrl(Url)
BaseUrlWebDav(Url)
Sharing(bool)
Resharing(bool)
AutoComplete(bool)
SharingTypes(Vec<String>)
PrimaryColor(Color)
TextColor(Color)
BackgroundColor(Color)
BackgroundTheme(Url)
Logo(Url)
Label(String)
AppIcon(Url)
FolderIcon(Url)
Implementations§
Source§impl ServerSettingValue
impl ServerSettingValue
Sourcepub fn kind(&self) -> ServerSettings
pub fn kind(&self) -> ServerSettings
Return the name of the setting
Sourcepub fn base_url_web_dav(self) -> Result<Url, Self>
pub fn base_url_web_dav(self) -> Result<Url, Self>
Coerce the value of the setting to this setting
Sourcepub fn autocomplete(self) -> Result<bool, Self>
pub fn autocomplete(self) -> Result<bool, Self>
Coerce the value of the setting to this setting
Sourcepub fn sharing_types(self) -> Result<Vec<String>, Self>
pub fn sharing_types(self) -> Result<Vec<String>, Self>
Coerce the value of the setting to this setting
Sourcepub fn primary_color(self) -> Result<Color, Self>
pub fn primary_color(self) -> Result<Color, Self>
Coerce the value of the setting to this setting
Sourcepub fn text_color(self) -> Result<Color, Self>
pub fn text_color(self) -> Result<Color, Self>
Coerce the value of the setting to this setting
Sourcepub fn background_color(self) -> Result<Color, Self>
pub fn background_color(self) -> Result<Color, Self>
Coerce the value of the setting to this setting
Sourcepub fn background_theme(self) -> Result<Url, Self>
pub fn background_theme(self) -> Result<Url, Self>
Coerce the value of the setting to this setting
Sourcepub fn folder_icon(self) -> Result<Url, Self>
pub fn folder_icon(self) -> Result<Url, Self>
Coerce the value of the setting to this setting
Trait Implementations§
Source§impl Debug for ServerSettingValue
impl Debug for ServerSettingValue
Source§impl<'de> Deserialize<'de> for ServerSettingValue
impl<'de> Deserialize<'de> for ServerSettingValue
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
Source§impl From<ServerSettingValue> for SettingValue
impl From<ServerSettingValue> for SettingValue
Source§fn from(value: ServerSettingValue) -> Self
fn from(value: ServerSettingValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerSettingValue
impl RefUnwindSafe for ServerSettingValue
impl Send for ServerSettingValue
impl Sync for ServerSettingValue
impl Unpin for ServerSettingValue
impl UnwindSafe for ServerSettingValue
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