GmailSettingsFilterGetCommand (filters/get.rs)

himalaya · src/gmail/settings/filters/get.rs · rust · Apache-2.0
email, tag:knn-classified

CLI command to fetch and display a Gmail filter by ID using Gmail API.

// 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 filter get
//!
//! The `gmail settings filters get` command,
//! `users.settings.filters.get`.

use std::fmt;

use anyhow::Result;
use clap::Parser;
use io_gmail::v1::rest::settings::filters::{GmailFilter, get::GmailFilterGet};
use pimalaya_cli::{printer::Printer, table::sanitize};
use schemars::JsonSchema;
use serde::Serialize;

use crate::gmail::{
    client::GmailClient,
    settings::filters::summary::{action_summary, criteria_summary},
};

/// Get a Gmail filter by identifier (users.settings.filters.get).
#[derive(Debug, Parser)]
pub struct GmailSettingsFilterGetCommand {
    /// Identi

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

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

Get a free API key