♻️ refactor(message): rename Message to MessageList

- rename Message struct to MessageList for clarity
- reflect the change in the instantiation
This commit is contained in:
Jeremiah Russell
2025-10-05 09:44:34 +01:00
committed by Jeremiah Russell
parent 0b52987a7d
commit 9247839ccc

View File

@@ -1,5 +1,5 @@
use clap::Parser; use clap::Parser;
use cull_gmail::{Error, Labels, Message}; use cull_gmail::{Error, Labels, MessageList};
/// Command line options for the list subcommand /// Command line options for the list subcommand
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
@@ -20,7 +20,7 @@ pub struct MessageCli {
impl MessageCli { impl MessageCli {
pub(crate) async fn run(&self, credential_file: &str) -> Result<(), Error> { pub(crate) async fn run(&self, credential_file: &str) -> Result<(), Error> {
let mut list = Message::new(credential_file).await?; let mut list = MessageList::new(credential_file).await?;
if !self.labels.is_empty() { if !self.labels.is_empty() {
// add labels if any specified // add labels if any specified