pub struct NewParam {
pub sid: String,
pub annotate: Vec<Annotate>,
pub semantic: Option<String>,
pub modifier: Option<Modifier>,
pub ty: ParamType,
}
Expand description
Instruction to create a new, named Param
object in the FX Runtime,
assign it a type, an initial value, and additional attributes at declaration time.
Fields§
§sid: String
Identifier for this parameter (that is, the variable name).
annotate: Vec<Annotate>
A list of strongly typed annotation remarks.
semantic: Option<String>
Meta-information that describes the purpose of the parameter declaration.
modifier: Option<Modifier>
Additional information about the volatility or linkage.
ty: ParamType
The parameter’s type.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewParam
impl RefUnwindSafe for NewParam
impl Send for NewParam
impl Sync for NewParam
impl Unpin for NewParam
impl UnwindSafe for NewParam
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