pub struct FunctionDeclarationBuilder(/* private fields */);Expand description
Builder for FunctionDeclaration.
Implementations§
Source§impl FunctionDeclarationBuilder
impl FunctionDeclarationBuilder
pub fn behavior(self, value: impl Into<Behavior>) -> Self
pub fn parameters(self, value: impl Into<Schema>) -> Self
pub fn parameters_json_schema(self, value: impl Into<Value>) -> Self
pub fn response(self, value: impl Into<Schema>) -> Self
pub fn response_json_schema(self, value: impl Into<Value>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> FunctionDeclaration
pub fn build(self) -> FunctionDeclaration
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for FunctionDeclarationBuilder
impl RefUnwindSafe for FunctionDeclarationBuilder
impl Send for FunctionDeclarationBuilder
impl Sync for FunctionDeclarationBuilder
impl Unpin for FunctionDeclarationBuilder
impl UnsafeUnpin for FunctionDeclarationBuilder
impl UnwindSafe for FunctionDeclarationBuilder
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