pub struct HubConfig {
pub hub: String,
pub key: Option<String>,
}Expand description
The resolved client configuration for one invocation.
Fields§
§hub: StringThe hub base URL, trailing slash stripped, HTTPS-or-loopback enforced.
key: Option<String>The bearer credential, when the environment carries one.
Implementations§
Source§impl HubConfig
impl HubConfig
Sourcepub fn require_key(&self) -> LinkResult<&str>
pub fn require_key(&self) -> LinkResult<&str>
The credential, or the canonical “not configured” error. Verbs that
authenticate call this; propose never does.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HubConfig
impl RefUnwindSafe for HubConfig
impl Send for HubConfig
impl Sync for HubConfig
impl Unpin for HubConfig
impl UnsafeUnpin for HubConfig
impl UnwindSafe for HubConfig
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