#[non_exhaustive]pub struct ExportSBOMRequest {
pub name: String,
pub target: Option<Target>,
/* private fields */
}Expand description
The request to generate and export SBOM. Target must be specified for the request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The name of the resource in the form of
projects/[PROJECT_ID]/resources/[RESOURCE_URL].
target: Option<Target>The location of the SBOM export.
Implementations§
Source§impl ExportSBOMRequest
impl ExportSBOMRequest
pub fn new() -> Self
Sourcepub fn set_target<T: Into<Option<Target>>>(self, v: T) -> Self
pub fn set_target<T: Into<Option<Target>>>(self, v: T) -> Self
Sets the value of target.
Note that all the setters affecting target are mutually
exclusive.
Sourcepub fn cloud_storage_location(&self) -> Option<&Box<CloudStorageLocation>>
pub fn cloud_storage_location(&self) -> Option<&Box<CloudStorageLocation>>
The value of target
if it holds a CloudStorageLocation, None if the field is not set or
holds a different branch.
Sourcepub fn set_cloud_storage_location<T: Into<Box<CloudStorageLocation>>>(
self,
v: T,
) -> Self
pub fn set_cloud_storage_location<T: Into<Box<CloudStorageLocation>>>( self, v: T, ) -> Self
Sets the value of target
to hold a CloudStorageLocation.
Note that all the setters affecting target are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ExportSBOMRequest
impl Clone for ExportSBOMRequest
Source§fn clone(&self) -> ExportSBOMRequest
fn clone(&self) -> ExportSBOMRequest
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 ExportSBOMRequest
impl Debug for ExportSBOMRequest
Source§impl Default for ExportSBOMRequest
impl Default for ExportSBOMRequest
Source§fn default() -> ExportSBOMRequest
fn default() -> ExportSBOMRequest
Returns the “default value” for a type. Read more
Source§impl Message for ExportSBOMRequest
impl Message for ExportSBOMRequest
Source§impl PartialEq for ExportSBOMRequest
impl PartialEq for ExportSBOMRequest
impl StructuralPartialEq for ExportSBOMRequest
Auto Trait Implementations§
impl Freeze for ExportSBOMRequest
impl RefUnwindSafe for ExportSBOMRequest
impl Send for ExportSBOMRequest
impl Sync for ExportSBOMRequest
impl Unpin for ExportSBOMRequest
impl UnwindSafe for ExportSBOMRequest
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