pub enum PartitionType {
Range,
List,
Hash,
}Expand description
How a table is partitioned.
PHP: Utopia\Query\Schema\PartitionType.
Variants§
Implementations§
Source§impl PartitionType
impl PartitionType
Sourcepub const CASES: &'static [PartitionType]
pub const CASES: &'static [PartitionType]
Every case, in declaration order.
PHP: cases().
Sourcepub const PHP_CLASS: &'static str = "Utopia\\Query\\Schema\\PartitionType"
pub const PHP_CLASS: &'static str = "Utopia\\Query\\Schema\\PartitionType"
The PHP class of this enumeration.
Sourcepub fn try_from_value(value: &str) -> Option<Self>
pub fn try_from_value(value: &str) -> Option<Self>
The case with backing value value, if any.
PHP: tryFrom().
Sourcepub fn from_value(value: &str) -> Result<Self, Error>
pub fn from_value(value: &str) -> Result<Self, Error>
The case with backing value value.
PHP: from(), which throws ValueError (Error::InvalidValue) with the same message.
Trait Implementations§
Source§impl Clone for PartitionType
impl Clone for PartitionType
impl Copy for PartitionType
Source§impl Debug for PartitionType
impl Debug for PartitionType
Source§impl Display for PartitionType
impl Display for PartitionType
impl Eq for PartitionType
Source§impl Hash for PartitionType
impl Hash for PartitionType
Source§impl PartialEq for PartitionType
impl PartialEq for PartitionType
impl StructuralPartialEq for PartitionType
Auto Trait Implementations§
impl Forget for PartitionType
impl Freeze for PartitionType
impl Move for PartitionType
impl RefUnwindSafe for PartitionType
impl Send for PartitionType
impl Sync for PartitionType
impl Unpin for PartitionType
impl UnsafeUnpin for PartitionType
impl UnwindSafe for PartitionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.