pub enum PrivacyLevel {
Local,
Cloud,
Either,
}Expand description
Privacy level for model routes — controls which routes are eligible based on the active privacy mode.
Variants§
Local
Only eligible when running locally (local_only mode).
Cloud
Only eligible when cloud access is allowed.
Either
Eligible in any privacy mode (default).
Trait Implementations§
Source§impl Clone for PrivacyLevel
impl Clone for PrivacyLevel
Source§fn clone(&self) -> PrivacyLevel
fn clone(&self) -> PrivacyLevel
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 PrivacyLevel
impl Debug for PrivacyLevel
Source§impl Default for PrivacyLevel
impl Default for PrivacyLevel
Source§fn default() -> PrivacyLevel
fn default() -> PrivacyLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrivacyLevel
impl<'de> Deserialize<'de> for PrivacyLevel
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 PartialEq for PrivacyLevel
impl PartialEq for PrivacyLevel
Source§impl Serialize for PrivacyLevel
impl Serialize for PrivacyLevel
impl Copy for PrivacyLevel
impl Eq for PrivacyLevel
impl StructuralPartialEq for PrivacyLevel
Auto Trait Implementations§
impl Freeze for PrivacyLevel
impl RefUnwindSafe for PrivacyLevel
impl Send for PrivacyLevel
impl Sync for PrivacyLevel
impl Unpin for PrivacyLevel
impl UnsafeUnpin for PrivacyLevel
impl UnwindSafe for PrivacyLevel
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