#[non_exhaustive]pub struct ImportEntitiesMetadata {
pub common: Option<CommonMetadata>,
pub progress_entities: Option<Progress>,
pub progress_bytes: Option<Progress>,
pub entity_filter: Option<EntityFilter>,
pub input_url: String,
/* private fields */
}Expand description
Metadata for ImportEntities operations.
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.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 imported.
input_url: StringThe location of the import metadata file. This will be the same value as the google.datastore.admin.v1.ExportEntitiesResponse.output_url field.
Implementations§
Source§impl ImportEntitiesMetadata
impl ImportEntitiesMetadata
pub fn new() -> Self
Sourcepub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonMetadata>,
pub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonMetadata>,
Sets the value of common.
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>,
Sets or clears the value of common.
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.
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.
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.
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.
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.
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.
Sourcepub fn set_input_url<T: Into<String>>(self, v: T) -> Self
pub fn set_input_url<T: Into<String>>(self, v: T) -> Self
Sets the value of input_url.
Trait Implementations§
Source§impl Clone for ImportEntitiesMetadata
impl Clone for ImportEntitiesMetadata
Source§fn clone(&self) -> ImportEntitiesMetadata
fn clone(&self) -> ImportEntitiesMetadata
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 ImportEntitiesMetadata
impl Debug for ImportEntitiesMetadata
Source§impl Default for ImportEntitiesMetadata
impl Default for ImportEntitiesMetadata
Source§fn default() -> ImportEntitiesMetadata
fn default() -> ImportEntitiesMetadata
Returns the “default value” for a type. Read more
Source§impl Message for ImportEntitiesMetadata
impl Message for ImportEntitiesMetadata
Source§impl PartialEq for ImportEntitiesMetadata
impl PartialEq for ImportEntitiesMetadata
impl StructuralPartialEq for ImportEntitiesMetadata
Auto Trait Implementations§
impl Freeze for ImportEntitiesMetadata
impl RefUnwindSafe for ImportEntitiesMetadata
impl Send for ImportEntitiesMetadata
impl Sync for ImportEntitiesMetadata
impl Unpin for ImportEntitiesMetadata
impl UnwindSafe for ImportEntitiesMetadata
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