pub struct CaseWhen {
pub branches: Vec<(Expression, Expression)>,
pub else_expr: Option<Box<Expression>>,
}Expand description
pyspark.sql.connect.expressions.CaseWhen
Fields§
§branches: Vec<(Expression, Expression)>§else_expr: Option<Box<Expression>>Implementations§
Source§impl CaseWhen
impl CaseWhen
pub fn new(branches: Vec<(Expression, Expression)>) -> Self
pub fn with_else(self, else_expr: Expression) -> Self
pub fn to_proto(&self) -> Expression
Trait Implementations§
impl StructuralPartialEq for CaseWhen
Auto Trait Implementations§
impl Freeze for CaseWhen
impl RefUnwindSafe for CaseWhen
impl Send for CaseWhen
impl Sync for CaseWhen
impl Unpin for CaseWhen
impl UnsafeUnpin for CaseWhen
impl UnwindSafe for CaseWhen
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