pub struct Cast {
pub child: Expression,
pub target: CastTarget,
pub eval_mode: Option<CastEvalMode>,
}Expand description
pyspark.sql.connect.expressions.CastExpression / Cast
Fields§
§child: Expression§target: CastTarget§eval_mode: Option<CastEvalMode>Implementations§
Source§impl Cast
impl Cast
pub fn new(child: Expression, to_type: DataType) -> Self
Sourcepub fn new_str(child: Expression, type_str: impl Into<String>) -> Self
pub fn new_str(child: Expression, type_str: impl Into<String>) -> Self
Cast to a DDL type string (mirrors Column.cast("string")).
pub fn with_eval_mode(self, mode: CastEvalMode) -> Self
pub fn to_proto(&self) -> Expression
Trait Implementations§
impl StructuralPartialEq for Cast
Auto Trait Implementations§
impl Freeze for Cast
impl RefUnwindSafe for Cast
impl Send for Cast
impl Sync for Cast
impl Unpin for Cast
impl UnsafeUnpin for Cast
impl UnwindSafe for Cast
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request