pub struct ProtocolResponse {
pub result: QueryResult,
pub protocol_type: ProtocolType,
pub format: ResponseFormat,
}Expand description
Protocol-specific response representation
Fields§
§result: QueryResult§protocol_type: ProtocolType§format: ResponseFormatImplementations§
Source§impl ProtocolResponse
impl ProtocolResponse
pub fn new(result: QueryResult, protocol_type: ProtocolType) -> Self
pub fn with_format(self, format: ResponseFormat) -> Self
Trait Implementations§
Source§impl Clone for ProtocolResponse
impl Clone for ProtocolResponse
Source§fn clone(&self) -> ProtocolResponse
fn clone(&self) -> ProtocolResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProtocolResponse
impl RefUnwindSafe for ProtocolResponse
impl Send for ProtocolResponse
impl Sync for ProtocolResponse
impl Unpin for ProtocolResponse
impl UnwindSafe for ProtocolResponse
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