Struct polars_plan::prelude::DistinctOptions
source · pub struct DistinctOptions {
pub subset: Option<Arc<Vec<String>>>,
pub maintain_order: bool,
pub keep_strategy: UniqueKeepStrategy,
pub slice: Option<(i64, usize)>,
}Fields§
§subset: Option<Arc<Vec<String>>>Subset of columns that will be taken into account.
maintain_order: boolThis will maintain the order of the input.
Note that this is more expensive.
maintain_order is not supported in the streaming
engine.
keep_strategy: UniqueKeepStrategyWhich rows to keep.
slice: Option<(i64, usize)>Take only a slice of the result
Trait Implementations§
source§impl Clone for DistinctOptions
impl Clone for DistinctOptions
source§fn clone(&self) -> DistinctOptions
fn clone(&self) -> DistinctOptions
Returns a copy 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 DistinctOptions
impl Debug for DistinctOptions
source§impl Default for DistinctOptions
impl Default for DistinctOptions
source§fn default() -> DistinctOptions
fn default() -> DistinctOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DistinctOptions
impl<'de> Deserialize<'de> for DistinctOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for DistinctOptions
impl PartialEq for DistinctOptions
source§fn eq(&self, other: &DistinctOptions) -> bool
fn eq(&self, other: &DistinctOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for DistinctOptions
impl Serialize for DistinctOptions
impl Eq for DistinctOptions
impl StructuralPartialEq for DistinctOptions
Auto Trait Implementations§
impl RefUnwindSafe for DistinctOptions
impl Send for DistinctOptions
impl Sync for DistinctOptions
impl Unpin for DistinctOptions
impl UnwindSafe for DistinctOptions
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<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.