Struct fluvio_protocol_api::RequestMessage [−][src]
pub struct RequestMessage<R> {
pub header: RequestHeader,
pub request: R,
}
Expand description
Start of API request
Fields
header: RequestHeader
request: R
Implementations
create with header, this assume header is constructed from higher request no api key check is performed since it is already done
create from request, header is implicilty created from key in the request
pub fn response_with_header<H>(
header: H,
response: R::Response
) -> ResponseMessage<R::Response> where
H: Into<i32>,
pub fn decode_response<T>(
&self,
src: &mut T,
version: Version
) -> Result<ResponseMessage<R::Response>, IoError> where
T: Buf,
pub fn decode_response_from_file<H: AsRef<Path>>(
&self,
file_name: H,
version: Version
) -> Result<ResponseMessage<R::Response>, IoError>
helper function to set client id