codetether_agent/a2a/git_credentials/query.rs
1//! Query types for Git credential helper requests.
2//!
3//! Git invokes the helper with protocol, host, and path fields. This module
4//! keeps the decoded request shape small and reusable.
5//!
6//! # Examples
7//!
8//! ```ignore
9//! let query = GitCredentialQuery::default();
10//! assert!(query.host.is_none());
11//! ```
12
13/// Parsed `git credential` request fields from stdin.
14///
15/// Missing fields are represented as `None` so callers can layer in defaults
16/// from credential material returned by the control plane.
17///
18/// # Examples
19///
20/// ```ignore
21/// let query = GitCredentialQuery::default();
22/// assert!(query.protocol.is_none());
23/// ```
24#[derive(Debug, Default)]
25pub struct GitCredentialQuery {
26 pub protocol: Option<String>,
27 pub host: Option<String>,
28 pub path: Option<String>,
29}