pub struct PurviewAppLocation {
pub location_type: PurviewLocationType,
pub location_value: String,
}Expand description
Identifies the calling application’s location for Purview policy
evaluation (an application id, a URL, or a domain). Mirrors Python’s
PurviewAppLocation.
Fields§
§location_type: PurviewLocationType§location_value: StringImplementations§
Source§impl PurviewAppLocation
impl PurviewAppLocation
pub fn new( location_type: PurviewLocationType, location_value: impl Into<String>, ) -> Self
Sourcepub fn to_policy_location(&self) -> PolicyLocation
pub fn to_policy_location(&self) -> PolicyLocation
Build the Graph @odata.type + value pair for this location.
Mirrors PurviewAppLocation.get_policy_location.
Trait Implementations§
Source§impl Clone for PurviewAppLocation
impl Clone for PurviewAppLocation
Source§fn clone(&self) -> PurviewAppLocation
fn clone(&self) -> PurviewAppLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PurviewAppLocation
impl Debug for PurviewAppLocation
impl Eq for PurviewAppLocation
Source§impl PartialEq for PurviewAppLocation
impl PartialEq for PurviewAppLocation
impl StructuralPartialEq for PurviewAppLocation
Auto Trait Implementations§
impl Freeze for PurviewAppLocation
impl RefUnwindSafe for PurviewAppLocation
impl Send for PurviewAppLocation
impl Sync for PurviewAppLocation
impl Unpin for PurviewAppLocation
impl UnsafeUnpin for PurviewAppLocation
impl UnwindSafe for PurviewAppLocation
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