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