url_params_serializer 0.1.1

Allows serialization of types to URL GET parameters
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::ser::Serialize;
use std::ops::AddAssign;

use crate::param_segment::ParamSegment;

pub trait ParamSerializer {
    fn add_value<T>(&mut self, v: T)
    where
        ParamSegment: AddAssign<T>;
    fn push_key(&mut self, v: impl Serialize);
    fn pop_key(&mut self);
    fn start_seq(&mut self);
    fn end_seq(&mut self);
    fn start_map(&mut self);
}