pub struct DraftResponseV2 {
pub status: String,
pub rules: Vec<PolicyRuleV2>,
pub draft_id: String,
pub metadata: PolicyMetadataV2,
}Expand description
DraftResponseV2 : Response object for draft operations
Fields§
§status: StringOperation status
rules: Vec<PolicyRuleV2>Draft rules
draft_id: StringDraft unique id
metadata: PolicyMetadataV2Implementations§
Source§impl DraftResponseV2
impl DraftResponseV2
Sourcepub fn new(
status: String,
rules: Vec<PolicyRuleV2>,
draft_id: String,
metadata: PolicyMetadataV2,
) -> DraftResponseV2
pub fn new( status: String, rules: Vec<PolicyRuleV2>, draft_id: String, metadata: PolicyMetadataV2, ) -> DraftResponseV2
Response object for draft operations
Trait Implementations§
Source§impl Clone for DraftResponseV2
impl Clone for DraftResponseV2
Source§fn clone(&self) -> DraftResponseV2
fn clone(&self) -> DraftResponseV2
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 DraftResponseV2
impl Debug for DraftResponseV2
Source§impl Default for DraftResponseV2
impl Default for DraftResponseV2
Source§fn default() -> DraftResponseV2
fn default() -> DraftResponseV2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DraftResponseV2
impl<'de> Deserialize<'de> for DraftResponseV2
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 DraftResponseV2
impl PartialEq for DraftResponseV2
Source§impl Serialize for DraftResponseV2
impl Serialize for DraftResponseV2
impl StructuralPartialEq for DraftResponseV2
Auto Trait Implementations§
impl Freeze for DraftResponseV2
impl RefUnwindSafe for DraftResponseV2
impl Send for DraftResponseV2
impl Sync for DraftResponseV2
impl Unpin for DraftResponseV2
impl UnwindSafe for DraftResponseV2
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