#[non_exhaustive]pub struct ExportEntitiesRequest {
pub project_id: String,
pub labels: HashMap<String, String>,
pub entity_filter: Option<EntityFilter>,
pub output_url_prefix: String,
/* private fields */
}Expand description
The request for google.datastore.admin.v1.DatastoreAdmin.ExportEntities.
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: StringRequired. Project ID against which to make the request.
labels: HashMap<String, String>Client-assigned labels.
entity_filter: Option<EntityFilter>Description of what data from the project is included in the export.
output_url_prefix: StringRequired. Location for the export metadata and data files.
The full resource URL of the external storage location. Currently, only
Google Cloud Storage is supported. So output_url_prefix should be of the
form: gs://BUCKET_NAME[/NAMESPACE_PATH], where BUCKET_NAME is the
name of the Cloud Storage bucket and NAMESPACE_PATH is an optional Cloud
Storage namespace path (this is not a Cloud Datastore namespace). For more
information about Cloud Storage namespace paths, see
Object name
considerations.
The resulting files will be nested deeper than the specified URL prefix. The final output URL will be provided in the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. That value should be used for subsequent ImportEntities operations.
By nesting the data files deeper, the same Cloud Storage bucket can be used in multiple ExportEntities operations without conflict.
Implementations§
Source§impl ExportEntitiesRequest
impl ExportEntitiesRequest
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
§Example
let x = ExportEntitiesRequest::new().set_project_id("example");Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_entity_filter<T>(self, v: T) -> Selfwhere
T: Into<EntityFilter>,
pub fn set_entity_filter<T>(self, v: T) -> Selfwhere
T: Into<EntityFilter>,
Sets the value of entity_filter.
§Example
use google_cloud_datastore_admin_v1::model::EntityFilter;
let x = ExportEntitiesRequest::new().set_entity_filter(EntityFilter::default()/* use setters */);Sourcepub fn set_or_clear_entity_filter<T>(self, v: Option<T>) -> Selfwhere
T: Into<EntityFilter>,
pub fn set_or_clear_entity_filter<T>(self, v: Option<T>) -> Selfwhere
T: Into<EntityFilter>,
Sets or clears the value of entity_filter.
§Example
use google_cloud_datastore_admin_v1::model::EntityFilter;
let x = ExportEntitiesRequest::new().set_or_clear_entity_filter(Some(EntityFilter::default()/* use setters */));
let x = ExportEntitiesRequest::new().set_or_clear_entity_filter(None::<EntityFilter>);Sourcepub fn set_output_url_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_output_url_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of output_url_prefix.
§Example
let x = ExportEntitiesRequest::new().set_output_url_prefix("example");Trait Implementations§
Source§impl Clone for ExportEntitiesRequest
impl Clone for ExportEntitiesRequest
Source§fn clone(&self) -> ExportEntitiesRequest
fn clone(&self) -> ExportEntitiesRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExportEntitiesRequest
impl Debug for ExportEntitiesRequest
Source§impl Default for ExportEntitiesRequest
impl Default for ExportEntitiesRequest
Source§fn default() -> ExportEntitiesRequest
fn default() -> ExportEntitiesRequest
Source§impl Message for ExportEntitiesRequest
impl Message for ExportEntitiesRequest
Source§impl PartialEq for ExportEntitiesRequest
impl PartialEq for ExportEntitiesRequest
impl StructuralPartialEq for ExportEntitiesRequest
Auto Trait Implementations§
impl Freeze for ExportEntitiesRequest
impl RefUnwindSafe for ExportEntitiesRequest
impl Send for ExportEntitiesRequest
impl Sync for ExportEntitiesRequest
impl Unpin for ExportEntitiesRequest
impl UnsafeUnpin for ExportEntitiesRequest
impl UnwindSafe for ExportEntitiesRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request