pub struct ParameterDescriptor {
pub name: String,
pub parameter_type: ParameterType,
pub required: bool,
}Expand description
Trusted capability parameter descriptor.
Fields§
§name: String§parameter_type: ParameterType§required: boolImplementations§
Source§impl ParameterDescriptor
impl ParameterDescriptor
Sourcepub fn required(name: impl Into<String>, parameter_type: ParameterType) -> Self
pub fn required(name: impl Into<String>, parameter_type: ParameterType) -> Self
Required parameter descriptor.
Sourcepub fn optional(name: impl Into<String>, parameter_type: ParameterType) -> Self
pub fn optional(name: impl Into<String>, parameter_type: ParameterType) -> Self
Optional parameter descriptor.
Trait Implementations§
Source§impl Clone for ParameterDescriptor
impl Clone for ParameterDescriptor
Source§fn clone(&self) -> ParameterDescriptor
fn clone(&self) -> ParameterDescriptor
Returns a copy 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 ParameterDescriptor
impl Debug for ParameterDescriptor
Source§impl PartialEq for ParameterDescriptor
impl PartialEq for ParameterDescriptor
impl Eq for ParameterDescriptor
impl StructuralPartialEq for ParameterDescriptor
Auto Trait Implementations§
impl Freeze for ParameterDescriptor
impl RefUnwindSafe for ParameterDescriptor
impl Send for ParameterDescriptor
impl Sync for ParameterDescriptor
impl Unpin for ParameterDescriptor
impl UnwindSafe for ParameterDescriptor
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