#[non_exhaustive]pub struct PartitionField {
pub name: String,
pub type: Type,
/* private fields */
}Expand description
Represents a key field within the entity’s partition structure. You could have up to 20 partition fields, but only the first 10 partitions have the filtering ability due to performance consideration. Note: Partition fields are immutable.
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: StringRequired. Partition field name must consist of letters, numbers, and underscores only, with a maximum of length of 256 characters, and must begin with a letter or underscore..
type: TypeRequired. Immutable. The type of field.
Implementations§
Trait Implementations§
Source§impl Clone for PartitionField
impl Clone for PartitionField
Source§fn clone(&self) -> PartitionField
fn clone(&self) -> PartitionField
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 PartitionField
impl Debug for PartitionField
Source§impl Default for PartitionField
impl Default for PartitionField
Source§fn default() -> PartitionField
fn default() -> PartitionField
Returns the “default value” for a type. Read more
Source§impl Message for PartitionField
impl Message for PartitionField
Source§impl PartialEq for PartitionField
impl PartialEq for PartitionField
impl StructuralPartialEq for PartitionField
Auto Trait Implementations§
impl Freeze for PartitionField
impl RefUnwindSafe for PartitionField
impl Send for PartitionField
impl Sync for PartitionField
impl Unpin for PartitionField
impl UnwindSafe for PartitionField
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