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: client.rs
    path of file: ./repos/sea-orm/examples/tonic_example/src
    
    the code of the file until where you have to start completion: use tonic::transport::Endpoint;
use tonic::Request;

use tonic_example_api::post_mod::{blogpost_client::BlogpostClient, PostPerPage};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let addr = Endpoint::from_static("http://0.0.0.0:50051");

    /*
    Client code is not implemented in completely
     as it would just make the code base look too complicated ....
     and interface requires a lot of boilerplate code to implement.

     But a basic implementation is given below ....
     please refer it to implement other ways to make your code pretty
    */

    let mut client = BlogpostClient::connect(addr).await?;
    let request = Request::new(PostPerPage { per
    
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let addr = Endpoint::from_static("http://0.0.0.0:50051");

    /*
    Client code is not implemented in completely
     as it would just make the code base look too complicated ....
     and interface requires a lot of boilerplate code to implement.

     But a basic implementation is given below ....
     please refer it to implement other ways to make your code pretty
    */

    let mut client = BlogpostClient::connect(addr).await?;
    let request = Request::new(PostPerPage { per_page: 10 });
    let response = client.get_posts(request).await?;

    for post in response.into_inner().post.iter() {
        println!("{post:?}");
    }

    Ok(())
}