You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: main.rs
    path of file: ./repos/gotham/examples/path/globs/src
    
    the code of the file until where you have to start completion: //! Shows how to match arbitrarily many path segments.

use gotham::prelude::*;
use gotham::router::{build_simple_router, Router};
use gotham::state::State;
use serde::Deserialize;

#[derive(Deserialize, StateData, StaticResponseExtender)]
struct PathExtractor {
    // This will be a Vec containing each path segment as a separate String, with no '/'s.
    #[serde(rename = "*")]
    parts: Vec<String>,
}

#[derive(Deserialize, StateData, StaticResponseExtender)]

    
fn named_parts_handler(state: State) -> (State, String) {
    let res = {
        let path = NamedPathExtractor::borrow_from(&state);

        let mut response_string = format!(
            "Got {} part{}:",
            path.parts.len(),
            if path.parts.len() == 1 { "" } else { "s" }
        );

        for part in path.parts.iter() {
            response_string.push('\n');
            response_string.push_str(part);
        }

        response_string
    };

    (state, res)
}