pub enum DataSovereignty {
Any,
EU,
Switzerland,
China,
US,
OnPremises,
}Expand description
Data sovereignty requirements.
Note: Consider using Jurisdiction instead for new code.
This is retained for backward compatibility with existing model metadata.
Variants§
Any
No specific requirements (default).
EU
Data must remain in EU/EEA.
Switzerland
Data must remain in Switzerland.
China
Data must remain in China.
US
Data must remain in US.
OnPremises
Self-hosted or on-premises.
Implementations§
Source§impl DataSovereignty
impl DataSovereignty
Sourcepub fn from_jurisdiction(jurisdiction: Jurisdiction, user_region: &str) -> Self
pub fn from_jurisdiction(jurisdiction: Jurisdiction, user_region: &str) -> Self
Converts from new Jurisdiction type.
Note: This is a lossy conversion since Jurisdiction is more abstract. Use this only for backward compatibility.
Trait Implementations§
Source§impl Clone for DataSovereignty
impl Clone for DataSovereignty
Source§fn clone(&self) -> DataSovereignty
fn clone(&self) -> DataSovereignty
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 DataSovereignty
impl Debug for DataSovereignty
Source§impl Hash for DataSovereignty
impl Hash for DataSovereignty
Source§impl PartialEq for DataSovereignty
impl PartialEq for DataSovereignty
impl Copy for DataSovereignty
impl Eq for DataSovereignty
impl StructuralPartialEq for DataSovereignty
Auto Trait Implementations§
impl Freeze for DataSovereignty
impl RefUnwindSafe for DataSovereignty
impl Send for DataSovereignty
impl Sync for DataSovereignty
impl Unpin for DataSovereignty
impl UnwindSafe for DataSovereignty
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