#[non_exhaustive]pub struct Partition {
pub name: String,
pub values: Vec<String>,
pub location: String,
pub etag: String,
/* private fields */
}Expand description
Represents partition metadata contained within entity instances.
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.name: StringOutput only. Partition values used in the HTTP URL must be
double encoded. For example, url_encode(url_encode(value)) can be used
to encode “US:CA/CA#Sunnyvale so that the request URL ends
with “/partitions/US%253ACA/CA%2523Sunnyvale”.
The name field in the response retains the encoded format.
values: Vec<String>Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
location: StringRequired. Immutable. The location of the entity data within the partition,
for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or
projects/<project_id>/datasets/<dataset_id>/tables/<table_id>
etag: String👎Deprecated
Optional. The etag for this partition.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Partition
Auto Trait Implementations§
impl Freeze for Partition
impl RefUnwindSafe for Partition
impl Send for Partition
impl Sync for Partition
impl Unpin for Partition
impl UnwindSafe for Partition
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