pub struct PowerShellSwitch {
pub expression: Box<PowerShellExpression>,
pub cases: Vec<PowerShellSwitchCase>,
pub default: Option<PowerShellScriptBlock>,
}Expand description
PowerShell switch 语句
Fields§
§expression: Box<PowerShellExpression>§cases: Vec<PowerShellSwitchCase>§default: Option<PowerShellScriptBlock>Trait Implementations§
Source§impl Clone for PowerShellSwitch
impl Clone for PowerShellSwitch
Source§fn clone(&self) -> PowerShellSwitch
fn clone(&self) -> PowerShellSwitch
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 moreSource§impl Debug for PowerShellSwitch
impl Debug for PowerShellSwitch
Source§impl<'de> Deserialize<'de> for PowerShellSwitch
impl<'de> Deserialize<'de> for PowerShellSwitch
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 PowerShellSwitch
impl PartialEq for PowerShellSwitch
Source§impl Serialize for PowerShellSwitch
impl Serialize for PowerShellSwitch
impl StructuralPartialEq for PowerShellSwitch
Auto Trait Implementations§
impl Freeze for PowerShellSwitch
impl RefUnwindSafe for PowerShellSwitch
impl Send for PowerShellSwitch
impl Sync for PowerShellSwitch
impl Unpin for PowerShellSwitch
impl UnwindSafe for PowerShellSwitch
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