pub struct MiddlewareRequest<'request> {
pub meta: CommandMeta,
pub command_path: &'request str,
pub system: &'request str,
pub user_args: ValueMap,
pub args: ValueMap,
pub default_fields: &'request str,
pub no_auth: bool,
}Expand description
Inputs for one middleware-managed command execution.
Fields§
§meta: CommandMetaPer-command metadata used by authentication, authorization, dry-run, audit, and activity.
command_path: &'request strColon-separated command path.
system: &'request strBackend/system id used in output metadata and generic error attribution.
user_args: ValueMapArguments explicitly supplied by the user.
args: ValueMapEffective arguments, including defaults.
default_fields: &'request strDefault field projection when --fields is absent.
no_auth: boolWhether credential resolution should be skipped.
Trait Implementations§
Source§impl<'request> Clone for MiddlewareRequest<'request>
impl<'request> Clone for MiddlewareRequest<'request>
Source§fn clone(&self) -> MiddlewareRequest<'request>
fn clone(&self) -> MiddlewareRequest<'request>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'request> Debug for MiddlewareRequest<'request>
impl<'request> Debug for MiddlewareRequest<'request>
Source§impl<'request> PartialEq for MiddlewareRequest<'request>
impl<'request> PartialEq for MiddlewareRequest<'request>
Source§fn eq(&self, other: &MiddlewareRequest<'request>) -> bool
fn eq(&self, other: &MiddlewareRequest<'request>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'request> StructuralPartialEq for MiddlewareRequest<'request>
Auto Trait Implementations§
impl<'request> Freeze for MiddlewareRequest<'request>
impl<'request> RefUnwindSafe for MiddlewareRequest<'request>
impl<'request> Send for MiddlewareRequest<'request>
impl<'request> Sync for MiddlewareRequest<'request>
impl<'request> Unpin for MiddlewareRequest<'request>
impl<'request> UnsafeUnpin for MiddlewareRequest<'request>
impl<'request> UnwindSafe for MiddlewareRequest<'request>
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