pub struct FunctionCall {
pub call: String,
pub args: Option<Map<String, Value>>,
pub catalog_id: Option<String>,
pub return_type: Option<String>,
}Expand description
A named function invocation, used both in component properties and in the
two call*Function messages.
Fields§
§call: StringFunction name, e.g. formatString, required, @index.
args: Option<Map<String, Value>>Named arguments. Values may themselves be bindings or nested calls.
catalog_id: Option<String>Catalog the function is drawn from, when it is not the surface default.
return_type: Option<String>Expected return type, used to disambiguate overloads on the wire.
Trait Implementations§
Source§impl Clone for FunctionCall
impl Clone for FunctionCall
Source§fn clone(&self) -> FunctionCall
fn clone(&self) -> FunctionCall
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FunctionCall
impl Debug for FunctionCall
Source§impl<'de> Deserialize<'de> for FunctionCall
impl<'de> Deserialize<'de> for FunctionCall
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
Source§impl PartialEq for FunctionCall
impl PartialEq for FunctionCall
Source§fn eq(&self, other: &FunctionCall) -> bool
fn eq(&self, other: &FunctionCall) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FunctionCall
impl Serialize for FunctionCall
impl StructuralPartialEq for FunctionCall
Auto Trait Implementations§
impl Freeze for FunctionCall
impl RefUnwindSafe for FunctionCall
impl Send for FunctionCall
impl Sync for FunctionCall
impl Unpin for FunctionCall
impl UnsafeUnpin for FunctionCall
impl UnwindSafe for FunctionCall
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