#[non_exhaustive]pub struct ImportDocumentsRequest {
pub name: String,
pub collection_ids: Vec<String>,
pub input_uri_prefix: String,
pub namespace_ids: Vec<String>,
/* private fields */
}Expand description
The request for FirestoreAdmin.ImportDocuments.
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.name: StringRequired. Database to import into. Should be of the form:
projects/{project_id}/databases/{database_id}.
collection_ids: Vec<String>Which collection IDs to import. Unspecified means all collections included in the import. Each collection ID in this list must be unique.
input_uri_prefix: StringLocation of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See: google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix.
namespace_ids: Vec<String>An empty list represents all namespaces. This is the preferred usage for databases that don’t use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn’t want to include them. Each namespace in this list must be unique.
Implementations§
Source§impl ImportDocumentsRequest
impl ImportDocumentsRequest
pub fn new() -> Self
Sourcepub fn set_collection_ids<T, V>(self, v: T) -> Self
pub fn set_collection_ids<T, V>(self, v: T) -> Self
Sets the value of collection_ids.
§Example
let x = ImportDocumentsRequest::new().set_collection_ids(["a", "b", "c"]);Sourcepub fn set_input_uri_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_input_uri_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of input_uri_prefix.
§Example
let x = ImportDocumentsRequest::new().set_input_uri_prefix("example");Sourcepub fn set_namespace_ids<T, V>(self, v: T) -> Self
pub fn set_namespace_ids<T, V>(self, v: T) -> Self
Sets the value of namespace_ids.
§Example
let x = ImportDocumentsRequest::new().set_namespace_ids(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for ImportDocumentsRequest
impl Clone for ImportDocumentsRequest
Source§fn clone(&self) -> ImportDocumentsRequest
fn clone(&self) -> ImportDocumentsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more