#[non_exhaustive]pub struct DataSource {
pub uri: String,
pub bq_mapping: Option<BigqueryMapping>,
/* private fields */
}Expand description
A data source consists of multiple Event objects stored on Cloud Storage. Each Event should be in JSON format, with one Event per line, also known as JSON Lines format.
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.uri: StringData source URI.
- Google Cloud Storage files (JSON) are defined in the following form.
gs://bucket_name/object_name. For more information on Cloud Storage URIs, please see https://cloud.google.com/storage/docs/reference-uris.
bq_mapping: Option<BigqueryMapping>For BigQuery inputs defines the columns that should be used for dimensions (including time and group ID).
Implementations§
Source§impl DataSource
impl DataSource
pub fn new() -> Self
Sourcepub fn set_bq_mapping<T>(self, v: T) -> Selfwhere
T: Into<BigqueryMapping>,
pub fn set_bq_mapping<T>(self, v: T) -> Selfwhere
T: Into<BigqueryMapping>,
Sets the value of bq_mapping.
Sourcepub fn set_or_clear_bq_mapping<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigqueryMapping>,
pub fn set_or_clear_bq_mapping<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigqueryMapping>,
Sets or clears the value of bq_mapping.
Trait Implementations§
Source§impl Clone for DataSource
impl Clone for DataSource
Source§fn clone(&self) -> DataSource
fn clone(&self) -> DataSource
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 DataSource
impl Debug for DataSource
Source§impl Default for DataSource
impl Default for DataSource
Source§fn default() -> DataSource
fn default() -> DataSource
Returns the “default value” for a type. Read more
Source§impl PartialEq for DataSource
impl PartialEq for DataSource
impl StructuralPartialEq for DataSource
Auto Trait Implementations§
impl Freeze for DataSource
impl RefUnwindSafe for DataSource
impl Send for DataSource
impl Sync for DataSource
impl Unpin for DataSource
impl UnwindSafe for DataSource
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