#[non_exhaustive]pub struct ExportPredictionResultMetadataRequest {
pub prediction_result: String,
pub structured_metadata_destination: Option<BigQueryDestination>,
/* private fields */
}Expand description
Request for exporting PredictionResult metadata.
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.prediction_result: StringRequired. The resource name of the PredictionResult.
structured_metadata_destination: Option<BigQueryDestination>Required. BigQuery output where the metadata will be written.
Implementations§
Source§impl ExportPredictionResultMetadataRequest
impl ExportPredictionResultMetadataRequest
Sourcepub fn set_prediction_result<T: Into<String>>(self, v: T) -> Self
pub fn set_prediction_result<T: Into<String>>(self, v: T) -> Self
Sets the value of prediction_result.
§Example
ⓘ
let x = ExportPredictionResultMetadataRequest::new().set_prediction_result(format!("projects/{project_num_id}/locations/{location_id}/instances/{instance_id}/predictionResults/{prediction_result_id}"));Sourcepub fn set_structured_metadata_destination<T>(self, v: T) -> Selfwhere
T: Into<BigQueryDestination>,
pub fn set_structured_metadata_destination<T>(self, v: T) -> Selfwhere
T: Into<BigQueryDestination>,
Sets the value of structured_metadata_destination.
§Example
ⓘ
use google_cloud_financialservices_v1::model::BigQueryDestination;
let x = ExportPredictionResultMetadataRequest::new().set_structured_metadata_destination(BigQueryDestination::default()/* use setters */);Sourcepub fn set_or_clear_structured_metadata_destination<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<BigQueryDestination>,
pub fn set_or_clear_structured_metadata_destination<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<BigQueryDestination>,
Sets or clears the value of structured_metadata_destination.
§Example
ⓘ
use google_cloud_financialservices_v1::model::BigQueryDestination;
let x = ExportPredictionResultMetadataRequest::new().set_or_clear_structured_metadata_destination(Some(BigQueryDestination::default()/* use setters */));
let x = ExportPredictionResultMetadataRequest::new().set_or_clear_structured_metadata_destination(None::<BigQueryDestination>);Trait Implementations§
Source§impl Clone for ExportPredictionResultMetadataRequest
impl Clone for ExportPredictionResultMetadataRequest
Source§fn clone(&self) -> ExportPredictionResultMetadataRequest
fn clone(&self) -> ExportPredictionResultMetadataRequest
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 Default for ExportPredictionResultMetadataRequest
impl Default for ExportPredictionResultMetadataRequest
Source§fn default() -> ExportPredictionResultMetadataRequest
fn default() -> ExportPredictionResultMetadataRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExportPredictionResultMetadataRequest
impl PartialEq for ExportPredictionResultMetadataRequest
Source§fn eq(&self, other: &ExportPredictionResultMetadataRequest) -> bool
fn eq(&self, other: &ExportPredictionResultMetadataRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExportPredictionResultMetadataRequest
Auto Trait Implementations§
impl Freeze for ExportPredictionResultMetadataRequest
impl RefUnwindSafe for ExportPredictionResultMetadataRequest
impl Send for ExportPredictionResultMetadataRequest
impl Sync for ExportPredictionResultMetadataRequest
impl Unpin for ExportPredictionResultMetadataRequest
impl UnsafeUnpin for ExportPredictionResultMetadataRequest
impl UnwindSafe for ExportPredictionResultMetadataRequest
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