pub struct BridgeResponse {
pub kind: &'static str,
pub request_id: String,
pub ok: bool,
pub payload: Option<Value>,
pub error: Option<BridgeErrorPayload>,
}Expand description
A JSON response envelope sent to the browser.
Fields§
§kind: &'static strResponse discriminator.
request_id: StringRequest correlation identifier.
ok: boolWhether the operation succeeded.
payload: Option<Value>Successful operation payload.
error: Option<BridgeErrorPayload>Structured error payload.
Implementations§
Trait Implementations§
Source§impl Clone for BridgeResponse
impl Clone for BridgeResponse
Source§fn clone(&self) -> BridgeResponse
fn clone(&self) -> BridgeResponse
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 BridgeResponse
impl Debug for BridgeResponse
Auto Trait Implementations§
impl Freeze for BridgeResponse
impl RefUnwindSafe for BridgeResponse
impl Send for BridgeResponse
impl Sync for BridgeResponse
impl Unpin for BridgeResponse
impl UnsafeUnpin for BridgeResponse
impl UnwindSafe for BridgeResponse
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