pub fn build(&self) -> String {
        let mut res = String::new();
        for component in &self.components {
            let next = match *component {
                TemplateComponent::Literal(ref s) => encode_reserved(s),
                TemplateComponent::VarList(ref op, ref varlist) => {
                    self.build_varlist(op, varlist)
                }
            };
            res.push_str(&next);
        }
        res
    }
/// Expands the template using the set variable values and returns the
/// final String.
///
/// Example
/// -------
///
/// ```ignore
/// let mut t = UriTemplate::new("{hello}");
/// t.set("hello", "Hello World!");
/// assert_eq!(t.build(), "Hello%20World%21");
/// ```
Expands the template using the set variable values and returns the
final String.

Example


Expands the template using the set variable values and returns the final String . Example
pub fn build(&self) -> String {
        let mut res = String::new();
        for component in &self.components {
            let next = match *component {
                TemplateComponent::Literal(ref s) => encode_reserved(s),
                TemplateComponent::VarList(ref op, ref varlist) => {
                    self.build_varlist(op, varlist)
                }
            };
            res.push_str(&next);
        }
        res
    }
pub fn build ( & self ) -> String { let mut res = String :: new ( ) ; for component in & self . components { let next = match * component { TemplateComponent :: Literal ( ref s ) => encode_reserved ( s ) , TemplateComponent :: VarList ( ref op , ref varlist ) => { self . build_varlist ( op , varlist ) } } ; res . push_str ( & next ) ; } res }
Expands the template using the set variable values and returns the
final String.
Expands the template using the set variable values and returns the final String .
&self
&self