Function encode
Source pub fn encode(
query_type: &str,
query_args: Option<&mut Vec<(&str, Params)>>,
) -> Vec<u8> ⓘ
Expand description
Encodes a query and its arguments into GTV format
§Arguments
query_type - The type of query to encode
query_args - Optional vector of query arguments as (name, value) pairs
§Returns
Vec<u8> - Encoded query as a byte vector