Struct PythonOptionsDsl
pub struct PythonOptionsDsl {
pub scan_fn: Option<PythonObject>,
pub schema_fn: Option<SpecialEq<Arc<Either<PythonObject, Arc<Schema<DataType>>>>>>,
pub python_source: PythonScanSource,
pub validate_schema: bool,
pub is_pure: bool,
}Fields§
§scan_fn: Option<PythonObject>A function that returns a Python Generator. The generator should produce Polars DataFrame’s.
schema_fn: Option<SpecialEq<Arc<Either<PythonObject, Arc<Schema<DataType>>>>>>Either the schema fn or schema is set.
python_source: PythonScanSource§validate_schema: bool§is_pure: boolImplementations§
§impl PythonOptionsDsl
impl PythonOptionsDsl
pub fn get_schema(&self) -> Result<Arc<Schema<DataType>>, PolarsError>
Trait Implementations§
§impl Clone for PythonOptionsDsl
impl Clone for PythonOptionsDsl
§fn clone(&self) -> PythonOptionsDsl
fn clone(&self) -> PythonOptionsDsl
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 more§impl Debug for PythonOptionsDsl
impl Debug for PythonOptionsDsl
§impl Default for PythonOptionsDsl
impl Default for PythonOptionsDsl
§fn default() -> PythonOptionsDsl
fn default() -> PythonOptionsDsl
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for PythonOptionsDsl
impl<'de> Deserialize<'de> for PythonOptionsDsl
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PythonOptionsDsl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PythonOptionsDsl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for PythonOptionsDsl
impl PartialEq for PythonOptionsDsl
§impl Serialize for PythonOptionsDsl
impl Serialize for PythonOptionsDsl
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for PythonOptionsDsl
impl StructuralPartialEq for PythonOptionsDsl
Auto Trait Implementations§
impl Freeze for PythonOptionsDsl
impl !RefUnwindSafe for PythonOptionsDsl
impl Send for PythonOptionsDsl
impl Sync for PythonOptionsDsl
impl Unpin for PythonOptionsDsl
impl !UnwindSafe for PythonOptionsDsl
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more