#[non_exhaustive]pub struct ExportEntitiesMetadata {
pub common: Option<CommonMetadata>,
pub progress_entities: Option<Progress>,
pub progress_bytes: Option<Progress>,
pub entity_filter: Option<EntityFilter>,
pub output_url_prefix: String,
/* private fields */
}Expand description
Metadata for ExportEntities operations.
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.common: Option<CommonMetadata>Metadata common to all Datastore Admin operations.
progress_entities: Option<Progress>An estimate of the number of entities processed.
progress_bytes: Option<Progress>An estimate of the number of bytes processed.
entity_filter: Option<EntityFilter>Description of which entities are being exported.
output_url_prefix: StringLocation for the export metadata and data files. This will be the same value as the google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix field. The final output location is provided in google.datastore.admin.v1.ExportEntitiesResponse.output_url.
Implementations§
Source§impl ExportEntitiesMetadata
impl ExportEntitiesMetadata
Sourcepub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonMetadata>,
pub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonMetadata>,
Sourcepub fn set_or_clear_common<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonMetadata>,
pub fn set_or_clear_common<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonMetadata>,
Sourcepub fn set_progress_entities<T>(self, v: T) -> Self
pub fn set_progress_entities<T>(self, v: T) -> Self
Sets the value of progress_entities.
§Example
use google_cloud_datastore_admin_v1::model::Progress;
let x = ExportEntitiesMetadata::new().set_progress_entities(Progress::default()/* use setters */);Sourcepub fn set_or_clear_progress_entities<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_progress_entities<T>(self, v: Option<T>) -> Self
Sets or clears the value of progress_entities.
§Example
use google_cloud_datastore_admin_v1::model::Progress;
let x = ExportEntitiesMetadata::new().set_or_clear_progress_entities(Some(Progress::default()/* use setters */));
let x = ExportEntitiesMetadata::new().set_or_clear_progress_entities(None::<Progress>);Sourcepub fn set_progress_bytes<T>(self, v: T) -> Self
pub fn set_progress_bytes<T>(self, v: T) -> Self
Sets the value of progress_bytes.
§Example
use google_cloud_datastore_admin_v1::model::Progress;
let x = ExportEntitiesMetadata::new().set_progress_bytes(Progress::default()/* use setters */);Sourcepub fn set_or_clear_progress_bytes<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_progress_bytes<T>(self, v: Option<T>) -> Self
Sets or clears the value of progress_bytes.
§Example
use google_cloud_datastore_admin_v1::model::Progress;
let x = ExportEntitiesMetadata::new().set_or_clear_progress_bytes(Some(Progress::default()/* use setters */));
let x = ExportEntitiesMetadata::new().set_or_clear_progress_bytes(None::<Progress>);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 = ExportEntitiesMetadata::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 = ExportEntitiesMetadata::new().set_or_clear_entity_filter(Some(EntityFilter::default()/* use setters */));
let x = ExportEntitiesMetadata::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 = ExportEntitiesMetadata::new().set_output_url_prefix("example");Trait Implementations§
Source§impl Clone for ExportEntitiesMetadata
impl Clone for ExportEntitiesMetadata
Source§fn clone(&self) -> ExportEntitiesMetadata
fn clone(&self) -> ExportEntitiesMetadata
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 ExportEntitiesMetadata
impl Debug for ExportEntitiesMetadata
Source§impl Default for ExportEntitiesMetadata
impl Default for ExportEntitiesMetadata
Source§fn default() -> ExportEntitiesMetadata
fn default() -> ExportEntitiesMetadata
Source§impl Message for ExportEntitiesMetadata
impl Message for ExportEntitiesMetadata
Source§impl PartialEq for ExportEntitiesMetadata
impl PartialEq for ExportEntitiesMetadata
impl StructuralPartialEq for ExportEntitiesMetadata
Auto Trait Implementations§
impl Freeze for ExportEntitiesMetadata
impl RefUnwindSafe for ExportEntitiesMetadata
impl Send for ExportEntitiesMetadata
impl Sync for ExportEntitiesMetadata
impl Unpin for ExportEntitiesMetadata
impl UnsafeUnpin for ExportEntitiesMetadata
impl UnwindSafe for ExportEntitiesMetadata
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