pub(crate) struct RequestBody {
pub(crate) guid: Str<Guid>,
pub(crate) method: Str<Method>,
pub(crate) params: Map<String, Value>,
pub(crate) place: WaitPlaces<Result<Result<Arc<Value>, Arc<ErrorMessage>>, Arc<Error>>>,
}Fields§
§guid: Str<Guid>§method: Str<Method>§params: Map<String, Value>§place: WaitPlaces<Result<Result<Arc<Value>, Arc<ErrorMessage>>, Arc<Error>>>Implementations§
Source§impl RequestBody
impl RequestBody
pub(crate) fn new(guid: Str<Guid>, method: Str<Method>) -> RequestBody
pub(crate) fn set_params(self, params: Map<String, Value>) -> Self
pub(crate) fn set_args<T: Serialize>(self, body: T) -> Result<Self, Error>
pub(crate) fn set_wait( self, wait: &WaitData<Result<Result<Arc<Value>, Arc<ErrorMessage>>, Arc<Error>>>, ) -> Self
Auto Trait Implementations§
impl Freeze for RequestBody
impl RefUnwindSafe for RequestBody
impl Send for RequestBody
impl Sync for RequestBody
impl Unpin for RequestBody
impl UnwindSafe for RequestBody
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