pub struct PolicyResponse {
pub rules: Vec<PolicyRule>,
pub metadata: PolicyMetadata,
}
Expand description
PolicyResponse : Response object for policy operations
Fields§
§rules: Vec<PolicyRule>
A set of policy rules
metadata: PolicyMetadata
Implementations§
Source§impl PolicyResponse
impl PolicyResponse
Sourcepub fn new(rules: Vec<PolicyRule>, metadata: PolicyMetadata) -> PolicyResponse
pub fn new(rules: Vec<PolicyRule>, metadata: PolicyMetadata) -> PolicyResponse
Response object for policy operations
Trait Implementations§
Source§impl Clone for PolicyResponse
impl Clone for PolicyResponse
Source§fn clone(&self) -> PolicyResponse
fn clone(&self) -> PolicyResponse
Returns a copy 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 PolicyResponse
impl Debug for PolicyResponse
Source§impl Default for PolicyResponse
impl Default for PolicyResponse
Source§fn default() -> PolicyResponse
fn default() -> PolicyResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyResponse
impl<'de> Deserialize<'de> for PolicyResponse
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 PolicyResponse
impl PartialEq for PolicyResponse
Source§impl Serialize for PolicyResponse
impl Serialize for PolicyResponse
impl StructuralPartialEq for PolicyResponse
Auto Trait Implementations§
impl Freeze for PolicyResponse
impl RefUnwindSafe for PolicyResponse
impl Send for PolicyResponse
impl Sync for PolicyResponse
impl Unpin for PolicyResponse
impl UnwindSafe for PolicyResponse
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