pub struct CrossCheckedAnchorStartupConfig { /* private fields */ }Expand description
Parsed runtime configuration. All fields are required together; an all- absent configuration keeps the route disabled.
Implementations§
Source§impl CrossCheckedAnchorStartupConfig
impl CrossCheckedAnchorStartupConfig
Sourcepub fn from_values(
admin_bearer: &str,
values: &BTreeMap<String, String>,
) -> Result<Option<Self>, CrossCheckedAnchorStartupError>
pub fn from_values( admin_bearer: &str, values: &BTreeMap<String, String>, ) -> Result<Option<Self>, CrossCheckedAnchorStartupError>
Parse a complete environment snapshot without reading process-global environment state, making startup policy deterministic and testable.
§Errors
Fails closed if any field is missing, malformed, or reuses the admin bearer.
pub fn bearer_verifier(&self) -> CrossCheckedBearerVerifier
pub fn node_key_id(&self) -> &str
pub fn store_config( &self, node_did: String, node_public_key: PublicKey, ) -> AnchorStoreConfig
Trait Implementations§
impl Eq for CrossCheckedAnchorStartupConfig
impl StructuralPartialEq for CrossCheckedAnchorStartupConfig
Auto Trait Implementations§
impl Freeze for CrossCheckedAnchorStartupConfig
impl RefUnwindSafe for CrossCheckedAnchorStartupConfig
impl Send for CrossCheckedAnchorStartupConfig
impl Sync for CrossCheckedAnchorStartupConfig
impl Unpin for CrossCheckedAnchorStartupConfig
impl UnsafeUnpin for CrossCheckedAnchorStartupConfig
impl UnwindSafe for CrossCheckedAnchorStartupConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.