pub struct MeshReviewWithdrawArgs {
pub request: String,
pub session: String,
pub note: Option<String>,
pub query: MeshQueryArgs,
}Expand description
mesh review withdraw: end a request this runtime asked for, because it is done, void
or superseded, with what came of it. Any session of the asking runtime may, no other
runtime may; the note is its own result, shown with the request, and never an answer.
use clap::Parser;
use majordomus_cli::cli::{Cli, Command, MeshCommand, MeshReviewCommand,
MeshReviewWithdrawArgs};
let cli = Cli::try_parse_from([
"majordomus", "mesh", "review", "withdraw", "a1b2c3d4-r1/r-1", "--session", "s1",
"--note", "superseded by the rebuilt head",
])
.unwrap();
let Command::Mesh(mesh) = cli.command else { panic!("expected `mesh`") };
let MeshCommand::Review(review) = mesh.command else { panic!("expected `review`") };
let MeshReviewCommand::Withdraw(w) = review.command else { panic!("expected `withdraw`") };
let w: MeshReviewWithdrawArgs = w;
assert_eq!(w.request, "a1b2c3d4-r1/r-1");
assert_eq!(w.note.as_deref(), Some("superseded by the rebuilt head"));Fields§
§request: StringThe request’s key, <stream>/<review>
session: StringThe withdrawing session, within the runtime that asked
note: Option<String>What came of it, or why it is void (up to 8 KiB)
query: MeshQueryArgsWhere the repository is and how to answer.
Trait Implementations§
Source§impl Args for MeshReviewWithdrawArgs
impl Args for MeshReviewWithdrawArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl Debug for MeshReviewWithdrawArgs
impl Debug for MeshReviewWithdrawArgs
Source§impl FromArgMatches for MeshReviewWithdrawArgs
impl FromArgMatches for MeshReviewWithdrawArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for MeshReviewWithdrawArgs
impl RefUnwindSafe for MeshReviewWithdrawArgs
impl Send for MeshReviewWithdrawArgs
impl Sync for MeshReviewWithdrawArgs
impl Unpin for MeshReviewWithdrawArgs
impl UnsafeUnpin for MeshReviewWithdrawArgs
impl UnwindSafe for MeshReviewWithdrawArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more