pub struct SpatialAccessControl { /* private fields */ }Expand description
Spatial access control for region-based restrictions.
Implementations§
Source§impl SpatialAccessControl
impl SpatialAccessControl
Sourcepub fn define_region(
&self,
region_id: String,
min_lon: f64,
min_lat: f64,
max_lon: f64,
max_lat: f64,
) -> Result<()>
pub fn define_region( &self, region_id: String, min_lon: f64, min_lat: f64, max_lon: f64, max_lat: f64, ) -> Result<()>
Define a region boundary.
Sourcepub fn grant_region_access(
&self,
subject_id: &str,
region_id: String,
) -> Result<()>
pub fn grant_region_access( &self, subject_id: &str, region_id: String, ) -> Result<()>
Grant subject access to a region.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpatialAccessControl
impl !RefUnwindSafe for SpatialAccessControl
impl Send for SpatialAccessControl
impl Sync for SpatialAccessControl
impl Unpin for SpatialAccessControl
impl UnsafeUnpin for SpatialAccessControl
impl UnwindSafe for SpatialAccessControl
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more