pub async fn list_sc_topics<O>(
    out: std::sync::Arc<O>,
    mut client: ScClient<String>,
    output_type: OutputType,
) -> Result<(), CliError>
where
    O: Terminal,
{
    let topics = client.topic_metadata(None).await?;
    let list_topics: Vec<ScTopicMetadata> = topics
        .into_iter()
        .map(|t| ScTopicMetadata::new(t))
        .collect();
    debug!("topics retrieved: {:#?}", list_topics);
    format_response_output(out, list_topics, output_type)
}
// Retrieve and print topics in desired format
Retrieve and print topics in desired format
Retrieve and print topics in desired format
pub async fn list_sc_topics<O>(
    out: std::sync::Arc<O>,
    mut client: ScClient<String>,
    output_type: OutputType,
) -> Result<(), CliError>
where
    O: Terminal,
{
    let topics = client.topic_metadata(None).await?;
    let list_topics: Vec<ScTopicMetadata> = topics
        .into_iter()
        .map(|t| ScTopicMetadata::new(t))
        .collect();
    debug!("topics retrieved: {:#?}", list_topics);
    format_response_output(out, list_topics, output_type)
}
pub async fn list_sc_topics < O > ( out : std :: sync :: Arc < O > , mut client : ScClient < String > , output_type : OutputType , ) -> Result < ( ) , CliError > where O : Terminal , { let topics = client . topic_metadata ( None ) . await ? ; let list_topics : Vec < ScTopicMetadata > = topics . into_iter ( ) . map ( | t | ScTopicMetadata :: new ( t ) ) . collect ( ) ; debug ! ( " " list_topics ) ; format_response_output ( out , list_topics , output_type ) }
Retrieve and print topics in desired format
Retrieve and print topics in desired format
out
std::sync::Arc<O>
client
ScClient<String>
output_type
OutputType
out
std::sync::Arc<O>
client
ScClient<String>
output_type
OutputType