pub struct PolicyVariable {
pub key: String,
pub default_value: Option<String>,
}
Expand description
Represents a parsed policy variable
Fields§
§key: String
The context key to look up
default_value: Option<String>
Optional default value if key is not found
Implementations§
Trait Implementations§
Source§impl Clone for PolicyVariable
impl Clone for PolicyVariable
Source§fn clone(&self) -> PolicyVariable
fn clone(&self) -> PolicyVariable
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 PolicyVariable
impl Debug for PolicyVariable
Source§impl PartialEq for PolicyVariable
impl PartialEq for PolicyVariable
impl StructuralPartialEq for PolicyVariable
Auto Trait Implementations§
impl Freeze for PolicyVariable
impl RefUnwindSafe for PolicyVariable
impl Send for PolicyVariable
impl Sync for PolicyVariable
impl Unpin for PolicyVariable
impl UnwindSafe for PolicyVariable
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