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: send_messages.rs
    path of file: ./repos/iggy/sdk/src/cli/message
    
    the code of the file until where you have to start completion: use crate::cli_command::{CliCommand, PRINT_TARGET};
use crate::client::Client;
use crate::identifier::Identifier;
use crate::messages::send_messages::{Message, Partitioning, SendMessages};
use anyhow::Context;
use async_trait::async_trait;
use std::io::{self, Read};
use std::vec::Vec;
use tracing::{event, Level};

pub struct SendMessagesCmd {
    stream_id: Identifier,
    topic_id: Identifier,
    partitioning: Pa
    
    async fn execute_cmd(&mut self, client: &dyn Client) -> anyhow::Result<(), anyhow::Error> {
        let messages = match &self.messages {
            Some(messages) => messages
                .iter()
                .map(|s| Message::new(None, s.clone().into(), None))
                .collect::<Vec<_>>(),
            None => {
                let input = self.read_message_from_stdin()?;

                input
                    .lines()
                    .map(|m| Message::new(None, String::from(m).into(), None))
                    .collect()
            }
        };

        client
            .send_messages(&mut SendMessages {
                stream_id: self.stream_id.clone(),
                topic_id: self.topic_id.clone(),
                partitioning: self.partitioning.clone(),
                messages,
            })
            .await
            .with_context(|| {
                format!(
                    "Problem sending messages to topic with ID: {} and stream with ID: {}",
                    self.topic_id, self.stream_id
                )
            })?;

        event!(target: PRINT_TARGET, Level::INFO,
            "Sent messages to topic with ID: {} and stream with ID: {}",
            self.topic_id,
            self.stream_id,
        );

        Ok(())
    }