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: tera.rs
    path of file: ./repos/leptos/benchmarks/src/todomvc
    
    the code of the file until where you have to start completion: use test::Bencher;

static TEMPLATE: &str = r#"<main>
            <section class="todoapp">
                <header class="header">
                    <h1>"todos"</h1>
                    <input class="new-todo" placeholder="What needs to be done? />
                </header>
                <section class="main" class={{ main_class }}>
                    <input id="toggle-all" class="toggle-all" type="checkbox"
						checked={{ toggle_checked }}
                    />
                    <label for="toggle-all">"Mark all as complete"</label>
                    <ul class="todo-list">
                        {% for todo in todos %}
						<li
							class={{ todo.class }}
						>
							<div class="view">
								<input
									class="toggle"
									type="checkbox"
									checked={{ todo.completed }}
								/>
								<labe
    
fn tera_todomvc_ssr_1000(b: &mut Bencher) {
    use serde::{Deserialize, Serialize};
    use tera::*;

    lazy_static::lazy_static! {
        static ref TERA: Tera = {
            let mut tera = Tera::default();
            tera.add_raw_templates(vec![("template.html", TEMPLATE)]).unwrap();
            tera
        };
    }

    #[derive(Serialize, Deserialize)]
    struct Todo {
        id: usize,
        label: String,
        completed: bool,
        editing: bool,
        class: String,
    }

    b.iter(|| {
        let mut ctx = Context::new();
        let todos = (0..1000)
            .map(|id| Todo {
                id,
                label: format!("Todo #{id}"),
                completed: false,
                editing: false,
                class: "todo".to_string(),
            })
            .collect::<Vec<_>>();

        let remaining = todos.iter().filter(|todo| !todo.completed).count();
        let completed = todos.iter().filter(|todo| todo.completed).count();
        ctx.insert("todos", &todos);
        ctx.insert("main_class", &if todos.is_empty() { "hidden" } else { "" });
        ctx.insert("toggle_checked", &(remaining > 0));
        ctx.insert("todos_remaining", &remaining);
        ctx.insert("todos_completed", &completed);
        ctx.insert("todos_empty", &todos.is_empty());
        ctx.insert("mode_all", &true);
        ctx.insert("mode_active", &false);
        ctx.insert("mode_selected", &false);

        let _ = TERA.render("template.html", &ctx).unwrap();
    });
}