pub struct ProtocolResponse {
pub status: ResponseStatus,
pub metadata: HashMap<String, String>,
pub body: Vec<u8>,
pub content_type: String,
}
Expand description
A protocol-agnostic response representation
Fields§
§status: ResponseStatus
Status code or success indicator (HTTP: 200, gRPC: OK, GraphQL: no errors)
metadata: HashMap<String, String>
Response metadata (headers, metadata, etc.)
body: Vec<u8>
Response body/payload
content_type: String
Content type or serialization format
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