pub struct PolicyMetadataV2 {
pub edited_by: Option<String>,
pub edited_at: Option<String>,
pub published_by: Option<String>,
pub published_at: Option<String>,
pub policy_type: PolicyTypeV2,
}Expand description
PolicyMetadataV2 : Policy metadata
Fields§
§edited_by: Option<String>The user ID of the user who last edited the policy
edited_at: Option<String>The timestamp of the last edit of the policy
published_by: Option<String>The user ID of the user who last published the policy
published_at: Option<String>The timestamp of the last publish of the policy
policy_type: PolicyTypeV2Implementations§
Source§impl PolicyMetadataV2
impl PolicyMetadataV2
Sourcepub fn new(policy_type: PolicyTypeV2) -> PolicyMetadataV2
pub fn new(policy_type: PolicyTypeV2) -> PolicyMetadataV2
Policy metadata
Trait Implementations§
Source§impl Clone for PolicyMetadataV2
impl Clone for PolicyMetadataV2
Source§fn clone(&self) -> PolicyMetadataV2
fn clone(&self) -> PolicyMetadataV2
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 PolicyMetadataV2
impl Debug for PolicyMetadataV2
Source§impl Default for PolicyMetadataV2
impl Default for PolicyMetadataV2
Source§fn default() -> PolicyMetadataV2
fn default() -> PolicyMetadataV2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyMetadataV2
impl<'de> Deserialize<'de> for PolicyMetadataV2
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 PolicyMetadataV2
impl PartialEq for PolicyMetadataV2
Source§impl Serialize for PolicyMetadataV2
impl Serialize for PolicyMetadataV2
impl StructuralPartialEq for PolicyMetadataV2
Auto Trait Implementations§
impl Freeze for PolicyMetadataV2
impl RefUnwindSafe for PolicyMetadataV2
impl Send for PolicyMetadataV2
impl Sync for PolicyMetadataV2
impl Unpin for PolicyMetadataV2
impl UnwindSafe for PolicyMetadataV2
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