pub struct AppContext<'a> {
pub site_name: &'a str,
pub manta_server_url: &'a str,
pub settings_hsm_group_name_opt: Option<&'a str>,
pub kafka_audit_opt: Option<&'a Kafka>,
pub settings: &'a Config,
}Expand description
Top-level CLI context, passed as &AppContext through CLI
handlers and commands.
Fields§
§site_name: &'a strSite name used to set the X-Manta-Site header on outbound
MantaClient requests.
manta_server_url: &'a strURL of the manta HTTP server this CLI talks to. Required.
settings_hsm_group_name_opt: Option<&'a str>§kafka_audit_opt: Option<&'a Kafka>§settings: &'a ConfigTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AppContext<'a>
impl<'a> !RefUnwindSafe for AppContext<'a>
impl<'a> Send for AppContext<'a>
impl<'a> Sync for AppContext<'a>
impl<'a> Unpin for AppContext<'a>
impl<'a> UnsafeUnpin for AppContext<'a>
impl<'a> !UnwindSafe for AppContext<'a>
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