pub struct ParsedParameter {
pub name: String,
pub typescript_type: String,
pub required: bool,
pub description: Option<String>,
}Expand description
A parsed parameter from TypeScript interface.
Fields§
§name: StringParameter name.
typescript_type: StringTypeScript type (e.g., “string”, “number”, “boolean”).
required: boolWhether the parameter is required.
description: Option<String>Parameter description from JSDoc.
Trait Implementations§
Source§impl Clone for ParsedParameter
impl Clone for ParsedParameter
Source§fn clone(&self) -> ParsedParameter
fn clone(&self) -> ParsedParameter
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 moreAuto Trait Implementations§
impl Freeze for ParsedParameter
impl RefUnwindSafe for ParsedParameter
impl Send for ParsedParameter
impl Sync for ParsedParameter
impl Unpin for ParsedParameter
impl UnwindSafe for ParsedParameter
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