GmailLabelsListCommand (labels.rs)

himalaya · src/gmail/labels.rs · rust · Apache-2.0
email

GmailLabelsListCommand retrieves a list of Gmail labels via the Google Workspace API for email organization and management.

// Source: https://github.com/pimalaya/himalaya | License: Apache-2.0 | Copyright 2022-2026 soywod <pimalaya.org@posteo.net>
// Provided via justclaw.it.com; keep this notice with the code.
//! # Gmail labels
//!
//! The `gmail labels` command family, covering `users.labels`.

pub mod create;
pub mod delete;
pub mod get;
pub mod list;
pub mod update;

use anyhow::Result;
use clap::Subcommand;
use pimalaya_cli::printer::Printer;

use crate::{
    account::context::Account,
    gmail::{
        client::GmailClient,
        labels::{
            create::GmailLabelCreateCommand, delete::GmailLabelDeleteCommand,
            get::GmailLabelGetCommand, list::GmailLabelsListCommand,
            update::GmailLabelUpdateCommand,
        },
    },
};

/// Manage Gmail labels (users.labels).
#[derive(

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key