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: post.rs
    path of file: ./repos/rust-webserver-example-with-iron-diesel-r2d2-serde/src/controllers
    
    the code of the file until where you have to start completion: import_controller_generic_requeriments!();

use dal::models::post::*;

pub fn create(req: &mut Request) -> IronResult<Response> {
	let mut new_post = get_body_as!(NewPost, req, response_bad_request);
	let connection = req.get_db_conn();
	let logger = req.get_logger();

	new_post.user_id = Some(req.get_user_data().id);

	let post = ok_or_return!(
		Post::create(&new_post, &co
    
pub fn create(req: &mut Request) -> IronResult<Response> {
	let mut new_post = get_body_as!(NewPost, req, response_bad_request);
	let connection = req.get_db_conn();
	let logger = req.get_logger();

	new_post.user_id = Some(req.get_user_data().id);

	let post = ok_or_return!(
		Post::create(&new_post, &connection, &logger), 
		response_bad_request("Error creating the post")
	);

	response_ok(&json!({"post_id": post.id}))
}