#[non_exhaustive]pub struct UpdateFindingRequest {
pub finding: Option<Finding>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Request message for updating or creating a finding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.finding: Option<Finding>Required. The finding resource to update or create if it does not already exist. parent, security_marks, and update_time will be ignored.
In the case of creation, the finding id portion of the name must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.
update_mask: Option<FieldMask>The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding.
When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using “source_properties.<property key>” in the field mask.
Implementations§
Source§impl UpdateFindingRequest
impl UpdateFindingRequest
Sourcepub fn set_finding<T>(self, v: T) -> Self
pub fn set_finding<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_finding<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_finding<T>(self, v: Option<T>) -> Self
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
use wkt::FieldMask;
let x = UpdateFindingRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
use wkt::FieldMask;
let x = UpdateFindingRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateFindingRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateFindingRequest
impl Clone for UpdateFindingRequest
Source§fn clone(&self) -> UpdateFindingRequest
fn clone(&self) -> UpdateFindingRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateFindingRequest
impl Debug for UpdateFindingRequest
Source§impl Default for UpdateFindingRequest
impl Default for UpdateFindingRequest
Source§fn default() -> UpdateFindingRequest
fn default() -> UpdateFindingRequest
Source§impl Message for UpdateFindingRequest
impl Message for UpdateFindingRequest
Source§impl PartialEq for UpdateFindingRequest
impl PartialEq for UpdateFindingRequest
impl StructuralPartialEq for UpdateFindingRequest
Auto Trait Implementations§
impl Freeze for UpdateFindingRequest
impl RefUnwindSafe for UpdateFindingRequest
impl Send for UpdateFindingRequest
impl Sync for UpdateFindingRequest
impl Unpin for UpdateFindingRequest
impl UnsafeUnpin for UpdateFindingRequest
impl UnwindSafe for UpdateFindingRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request