#[non_exhaustive]pub struct FirestoreSource {
pub project_id: String,
pub database_id: String,
pub collection_id: String,
pub gcs_staging_dir: String,
/* private fields */
}document-service only.Expand description
Firestore source import data from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.project_id: StringThe project ID that the Cloud SQL source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
database_id: StringRequired. The Firestore database to copy the data from with a length limit of 256 characters.
collection_id: StringRequired. The Firestore collection (or entity) to copy the data from with a length limit of 1,500 characters.
gcs_staging_dir: StringIntermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the Firestore export to a specific Cloud Storage directory.
Ensure that the Firestore service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.
Implementations§
Source§impl FirestoreSource
impl FirestoreSource
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_database_id<T: Into<String>>(self, v: T) -> Self
pub fn set_database_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_collection_id<T: Into<String>>(self, v: T) -> Self
pub fn set_collection_id<T: Into<String>>(self, v: T) -> Self
Sets the value of collection_id.
§Example
let x = FirestoreSource::new().set_collection_id("example");Sourcepub fn set_gcs_staging_dir<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_staging_dir<T: Into<String>>(self, v: T) -> Self
Sets the value of gcs_staging_dir.
§Example
let x = FirestoreSource::new().set_gcs_staging_dir("example");Trait Implementations§
Source§impl Clone for FirestoreSource
impl Clone for FirestoreSource
Source§fn clone(&self) -> FirestoreSource
fn clone(&self) -> FirestoreSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more