#[non_exhaustive]pub struct AiModel {
pub name: String,
pub domain: String,
pub library: String,
pub location: String,
pub publisher: String,
pub deployment_platform: DeploymentPlatform,
pub display_name: String,
/* private fields */
}Expand description
Contains information about the AI model associated with the finding.
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: StringThe name of the AI model, for example, “gemini:1.0.0”.
domain: StringThe domain of the model, for example, “image-classification”.
library: StringThe name of the model library, for example, “transformers”.
location: StringThe region in which the model is used, for example, “us-central1”.
publisher: StringThe publisher of the model, for example, “google” or “nvidia”.
deployment_platform: DeploymentPlatformThe platform on which the model is deployed.
display_name: StringThe user defined display name of model. Ex. baseline-classification-model
Implementations§
Source§impl AiModel
impl AiModel
pub fn new() -> Self
Sourcepub fn set_domain<T: Into<String>>(self, v: T) -> Self
pub fn set_domain<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_library<T: Into<String>>(self, v: T) -> Self
pub fn set_library<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_publisher<T: Into<String>>(self, v: T) -> Self
pub fn set_publisher<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_deployment_platform<T: Into<DeploymentPlatform>>(self, v: T) -> Self
pub fn set_deployment_platform<T: Into<DeploymentPlatform>>(self, v: T) -> Self
Sets the value of deployment_platform.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::ai_model::DeploymentPlatform;
let x0 = AiModel::new().set_deployment_platform(DeploymentPlatform::VertexAi);
let x1 = AiModel::new().set_deployment_platform(DeploymentPlatform::Gke);
let x2 = AiModel::new().set_deployment_platform(DeploymentPlatform::Gce);Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
impl StructuralPartialEq for AiModel
Auto Trait Implementations§
impl Freeze for AiModel
impl RefUnwindSafe for AiModel
impl Send for AiModel
impl Sync for AiModel
impl Unpin for AiModel
impl UnwindSafe for AiModel
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