pub struct PowerShellMethod {
pub name: String,
pub parameters: Vec<PowerShellParameter>,
pub return_type: Option<String>,
pub body: PowerShellScriptBlock,
pub attributes: Vec<PowerShellAttribute>,
}Expand description
PowerShell 方法
Fields§
§name: String§parameters: Vec<PowerShellParameter>§return_type: Option<String>§body: PowerShellScriptBlock§attributes: Vec<PowerShellAttribute>Trait Implementations§
Source§impl Clone for PowerShellMethod
impl Clone for PowerShellMethod
Source§fn clone(&self) -> PowerShellMethod
fn clone(&self) -> PowerShellMethod
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 PowerShellMethod
impl Debug for PowerShellMethod
Source§impl<'de> Deserialize<'de> for PowerShellMethod
impl<'de> Deserialize<'de> for PowerShellMethod
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 PowerShellMethod
impl PartialEq for PowerShellMethod
Source§impl Serialize for PowerShellMethod
impl Serialize for PowerShellMethod
impl StructuralPartialEq for PowerShellMethod
Auto Trait Implementations§
impl Freeze for PowerShellMethod
impl RefUnwindSafe for PowerShellMethod
impl Send for PowerShellMethod
impl Sync for PowerShellMethod
impl Unpin for PowerShellMethod
impl UnwindSafe for PowerShellMethod
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