pub struct ParamBuilder { /* private fields */ }
Expand description
Builder for function parameters
Implementations§
Source§impl ParamBuilder
impl ParamBuilder
Sourcepub fn description(self, desc: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
Sets the parameter description
Sourcepub fn items(self, item_property: ParameterProperty) -> Self
pub fn items(self, item_property: ParameterProperty) -> Self
Sets the array item type for array parameters
Sourcepub fn enum_values(self, values: Vec<String>) -> Self
pub fn enum_values(self, values: Vec<String>) -> Self
Sets the enum values for enum parameters
Auto Trait Implementations§
impl Freeze for ParamBuilder
impl RefUnwindSafe for ParamBuilder
impl Send for ParamBuilder
impl Sync for ParamBuilder
impl Unpin for ParamBuilder
impl UnwindSafe for ParamBuilder
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