pub struct Ctx {
pub sdk: QuicknodeSdk,
pub out: OutputCtx,
pub global: GlobalArgs,
}Fields§
§sdk: QuicknodeSdk§out: OutputCtx§global: GlobalArgsImplementations§
Source§impl Ctx
impl Ctx
Sourcepub fn from_global(global: GlobalArgs) -> Result<Self, CliError>
pub fn from_global(global: GlobalArgs) -> Result<Self, CliError>
Construct the SDK + output ctx from global. Resolves the API key per
the documented precedence: flag > config file (--config-file path if
given, else the default). If neither supplies a key we return
CliError::NoApiKey — regular commands do not prompt; the user is
directed to qn auth login.
Auto Trait Implementations§
impl !RefUnwindSafe for Ctx
impl !UnwindSafe for Ctx
impl Freeze for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnsafeUnpin for Ctx
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