#[non_exhaustive]pub struct ExampleGcsSource {
pub data_format: DataFormat,
pub gcs_source: Option<GcsSource>,
/* private fields */
}Available on crate features
dataset-service or deployment-resource-pool-service or endpoint-service or job-service or model-service or pipeline-service or prediction-service only.Expand description
The Cloud Storage input instances.
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.data_format: DataFormatThe format in which instances are given, if not specified, assume it’s JSONL format. Currently only JSONL format is supported.
gcs_source: Option<GcsSource>The Cloud Storage location for the input instances.
Implementations§
Source§impl ExampleGcsSource
impl ExampleGcsSource
pub fn new() -> Self
Sourcepub fn set_data_format<T: Into<DataFormat>>(self, v: T) -> Self
pub fn set_data_format<T: Into<DataFormat>>(self, v: T) -> Self
Sets the value of data_format.
Sourcepub fn set_gcs_source<T>(self, v: T) -> Self
pub fn set_gcs_source<T>(self, v: T) -> Self
Sets the value of gcs_source.
Sourcepub fn set_or_clear_gcs_source<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_gcs_source<T>(self, v: Option<T>) -> Self
Sets or clears the value of gcs_source.
Trait Implementations§
Source§impl Clone for ExampleGcsSource
impl Clone for ExampleGcsSource
Source§fn clone(&self) -> ExampleGcsSource
fn clone(&self) -> ExampleGcsSource
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 ExampleGcsSource
impl Debug for ExampleGcsSource
Source§impl Default for ExampleGcsSource
impl Default for ExampleGcsSource
Source§fn default() -> ExampleGcsSource
fn default() -> ExampleGcsSource
Returns the “default value” for a type. Read more
Source§impl Message for ExampleGcsSource
impl Message for ExampleGcsSource
Source§impl PartialEq for ExampleGcsSource
impl PartialEq for ExampleGcsSource
impl StructuralPartialEq for ExampleGcsSource
Auto Trait Implementations§
impl Freeze for ExampleGcsSource
impl RefUnwindSafe for ExampleGcsSource
impl Send for ExampleGcsSource
impl Sync for ExampleGcsSource
impl Unpin for ExampleGcsSource
impl UnwindSafe for ExampleGcsSource
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