pub struct LookupParam {
pub name: String,
pub alternate_names: Vec<String>,
pub required: bool,
pub domain: Option<String>,
pub members: Option<Vec<EnumMemberEntry>>,
pub param_type: Option<String>,
pub default: Option<String>,
}Expand description
One ordered parameter of a callable: the owner facts a caller renders.
Fields§
§name: StringThe canonical OPY keyword spelling.
alternate_names: Vec<String>The alternate keyword spellings the slot accepts.
required: boolWhether the slot must be supplied.
domain: Option<String>The enum domain the slot takes, when it takes one.
members: Option<Vec<EnumMemberEntry>>Every member spelling of that domain, when it is an enum slot — the owner supplies the full inventory; which members a signature renders is the caller’s policy.
param_type: Option<String>The semantic type the catalog records for the slot.
default: Option<String>The default value, rendered in source syntax.
Trait Implementations§
Source§impl Clone for LookupParam
impl Clone for LookupParam
Source§impl Debug for LookupParam
impl Debug for LookupParam
Source§impl PartialEq for LookupParam
impl PartialEq for LookupParam
Source§impl Serialize for LookupParam
impl Serialize for LookupParam
impl StructuralPartialEq for LookupParam
Auto Trait Implementations§
impl Freeze for LookupParam
impl RefUnwindSafe for LookupParam
impl Send for LookupParam
impl Sync for LookupParam
impl Unpin for LookupParam
impl UnsafeUnpin for LookupParam
impl UnwindSafe for LookupParam
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