pub struct PowerShellIf {
pub condition: Box<PowerShellExpression>,
pub then_block: PowerShellScriptBlock,
pub elseif_blocks: Vec<PowerShellElseIf>,
pub else_block: Option<PowerShellScriptBlock>,
}Expand description
PowerShell if 语句
Fields§
§condition: Box<PowerShellExpression>§then_block: PowerShellScriptBlock§elseif_blocks: Vec<PowerShellElseIf>§else_block: Option<PowerShellScriptBlock>Trait Implementations§
Source§impl Clone for PowerShellIf
impl Clone for PowerShellIf
Source§fn clone(&self) -> PowerShellIf
fn clone(&self) -> PowerShellIf
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 PowerShellIf
impl Debug for PowerShellIf
Source§impl<'de> Deserialize<'de> for PowerShellIf
impl<'de> Deserialize<'de> for PowerShellIf
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 PowerShellIf
impl PartialEq for PowerShellIf
Source§impl Serialize for PowerShellIf
impl Serialize for PowerShellIf
impl StructuralPartialEq for PowerShellIf
Auto Trait Implementations§
impl Freeze for PowerShellIf
impl RefUnwindSafe for PowerShellIf
impl Send for PowerShellIf
impl Sync for PowerShellIf
impl Unpin for PowerShellIf
impl UnwindSafe for PowerShellIf
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