pub struct ParamBuilder {
pub object_type: ObjectType,
pub param_id: ParamType,
pub builder: Box<dyn FnOnce(ObjectBuilder<'_>) -> ObjectBuilder<'_>>,
}Expand description
Because param objects are generic and depend on the context in which they are being used,
we provide a construct a param object. The provided object and param types are used while
creating the message sent to the server, and the builder callback is then called to let
the caller set the required fields (which can be as complex as required).
Fields§
§object_type: ObjectTypeThe object type for the param being built.
param_id: ParamTypeThe id of the param being built.
builder: Box<dyn FnOnce(ObjectBuilder<'_>) -> ObjectBuilder<'_>>A free form Pod builder for the individual object fields.
Auto Trait Implementations§
impl Freeze for ParamBuilder
impl !RefUnwindSafe for ParamBuilder
impl !Send for ParamBuilder
impl !Sync for ParamBuilder
impl Unpin for ParamBuilder
impl !UnwindSafe for ParamBuilder
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