pub struct ProcessContentResponse {
pub id: Option<String>,
pub protection_scope_state: Option<ProtectionScopeState>,
pub policy_actions: Option<Vec<DlpActionInfo>>,
pub processing_errors: Option<Vec<ProcessingError>>,
}Expand description
The processContent response body. Mirrors Python’s
ProcessContentResponse.
Fields§
§id: Option<String>§protection_scope_state: Option<ProtectionScopeState>§policy_actions: Option<Vec<DlpActionInfo>>§processing_errors: Option<Vec<ProcessingError>>Implementations§
Source§impl ProcessContentResponse
impl ProcessContentResponse
Sourcepub fn should_block(&self) -> bool
pub fn should_block(&self) -> bool
Whether this response’s policy actions constitute a block verdict.
Mirrors ScopedContentProcessor.process_messages’s check:
action == DlpAction.BLOCK_ACCESS or restriction_action == RestrictionAction.BLOCK on any entry of policy_actions.
Trait Implementations§
Source§impl Clone for ProcessContentResponse
impl Clone for ProcessContentResponse
Source§fn clone(&self) -> ProcessContentResponse
fn clone(&self) -> ProcessContentResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessContentResponse
impl Debug for ProcessContentResponse
Source§impl Default for ProcessContentResponse
impl Default for ProcessContentResponse
Source§fn default() -> ProcessContentResponse
fn default() -> ProcessContentResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProcessContentResponse
impl<'de> Deserialize<'de> for ProcessContentResponse
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
Auto Trait Implementations§
impl Freeze for ProcessContentResponse
impl RefUnwindSafe for ProcessContentResponse
impl Send for ProcessContentResponse
impl Sync for ProcessContentResponse
impl Unpin for ProcessContentResponse
impl UnsafeUnpin for ProcessContentResponse
impl UnwindSafe for ProcessContentResponse
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