pub enum AuthMode {
None,
Web,
Local,
Online {
api_url: String,
},
}Expand description
Authentication mode
Determines how the application authenticates and where data is stored.
§Example
use data_modelling_core::auth::AuthMode;
// Web mode (GitHub SSO)
let web_mode = AuthMode::Web;
// Online mode (remote API)
let online_mode = AuthMode::Online {
api_url: "https://api.example.com".to_string(),
};
// Local mode (offline)
let local_mode = AuthMode::Local;Variants§
None
Not yet selected (desktop/mobile only)
Web
Web platform - GitHub SSO required
Local
Local mode - works offline with local files
Online
Online mode - connects to remote API server
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthMode
impl<'de> Deserialize<'de> for AuthMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AuthMode
impl Serialize for AuthMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AuthMode
impl StructuralPartialEq for AuthMode
Auto Trait Implementations§
impl Freeze for AuthMode
impl RefUnwindSafe for AuthMode
impl Send for AuthMode
impl Sync for AuthMode
impl Unpin for AuthMode
impl UnwindSafe for AuthMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.