#[non_exhaustive]pub struct ExampleGcsSource {
pub data_format: DataFormat,
pub gcs_source: Option<GcsSource>,
/* private fields */
}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: Into<Option<GcsSource>>>(self, v: T) -> Self
pub fn set_gcs_source<T: Into<Option<GcsSource>>>(self, v: T) -> Self
Sets 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 copy 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<'de> Deserialize<'de> for ExampleGcsSourcewhere
ExampleGcsSource: Default,
impl<'de> Deserialize<'de> for ExampleGcsSourcewhere
ExampleGcsSource: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for ExampleGcsSource
impl Message for ExampleGcsSource
Source§impl PartialEq for ExampleGcsSource
impl PartialEq for ExampleGcsSource
Source§impl Serialize for ExampleGcsSource
impl Serialize 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