pub struct Function {
pub id: String,
pub kind: FunctionKind,
pub receiver: Option<ReceiverCategory>,
pub params: Vec<Param>,
pub unbounded: bool,
pub keyword_args: bool,
pub catalog_id: Option<String>,
pub catalog_link: CatalogLink,
pub evidence: Vec<String>,
}Expand description
One builtin function entry (generic action/value or member function).
Fields§
§id: String§kind: FunctionKind§receiver: Option<ReceiverCategory>The declared receiver category of member functions (descriptive
metadata; see ReceiverCategory).
params: Vec<Param>§unbounded: boolWhether the argument count is unbounded (.format placeholders).
keyword_args: boolWhether keyword arguments are accepted (name = expr). Defaults to
true (the reference’s parseArgs applies to every workshop
function); entries the reference routes around that mechanism
(range, random.*, .format) declare "keywordArgs": false
(issue #110).
catalog_id: Option<String>The canonical Workshop catalog id this entry emits through; absent when emission is special-cased or not yet catalog-covered.
catalog_link: CatalogLinkThe explicit reason a source-level function has no direct catalog id.
evidence: Vec<String>The probe ids that validate this entry against the pinned oracle.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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