pub struct HubConfig {
pub hub: String,
pub key: Option<String>,
pub agent_key: Option<AgentSigningKey>,
pub brain_key: Option<AgentSigningKey>,
pub state_dir: PathBuf,
/* private fields */
}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.
agent_key: Option<AgentSigningKey>The agent signing key, when AGENT_KEY_FILE_ENV names one. Wins
over the bearer for authenticated requests (link.md §8).
brain_key: Option<AgentSigningKey>The self-custodied brain signing key, when BRAIN_KEY_FILE_ENV
names one — sync --push then signs feed entries locally (§2.4).
state_dir: PathBufUser-owned global toolkit state root. Identity pins and monotonic feed
checkpoints live below <state_dir>/trust/, never under a store.
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