pub struct PowerShellFunction {
pub name: String,
pub body: PowerShellScriptBlock,
pub attributes: Vec<PowerShellAttribute>,
}Expand description
A PowerShell function definition.
Fields§
§name: StringName of the function.
body: PowerShellScriptBlockBody of the function.
attributes: Vec<PowerShellAttribute>Attributes applied to the function.
Trait Implementations§
Source§impl Clone for PowerShellFunction
impl Clone for PowerShellFunction
Source§fn clone(&self) -> PowerShellFunction
fn clone(&self) -> PowerShellFunction
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 PowerShellFunction
impl Debug for PowerShellFunction
Source§impl<'de> Deserialize<'de> for PowerShellFunction
impl<'de> Deserialize<'de> for PowerShellFunction
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 PowerShellFunction
impl PartialEq for PowerShellFunction
Source§impl Serialize for PowerShellFunction
impl Serialize for PowerShellFunction
impl StructuralPartialEq for PowerShellFunction
Auto Trait Implementations§
impl Freeze for PowerShellFunction
impl RefUnwindSafe for PowerShellFunction
impl Send for PowerShellFunction
impl Sync for PowerShellFunction
impl Unpin for PowerShellFunction
impl UnsafeUnpin for PowerShellFunction
impl UnwindSafe for PowerShellFunction
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