#[non_exhaustive]pub struct CampBootstrapPolicy {
pub credential_ttl_seconds: i64,
}Expand description
TTL defaults for a bootstrap credential.
Long-lived per .yah/docs/working/mcp-auth-and-ownership.md §TTLs — the
camp uses this credential to mint short-TTL access tokens for months/years,
and rotation (when added) registers a fresh credential alongside the old
one.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.credential_ttl_seconds: i64Implementations§
Source§impl CampBootstrapPolicy
impl CampBootstrapPolicy
Sourcepub const DEFAULT_CREDENTIAL_TTL_SECONDS: i64
pub const DEFAULT_CREDENTIAL_TTL_SECONDS: i64
1 year (365 days). The doc only commits to “long-lived”; one year is a defensible split between operator-rotation cadence and “rare enough to not be a hot path”.
pub fn new(credential_ttl_seconds: i64) -> Self
pub fn with_credential_ttl(self, seconds: i64) -> Self
Trait Implementations§
Source§impl Clone for CampBootstrapPolicy
impl Clone for CampBootstrapPolicy
impl Copy for CampBootstrapPolicy
Source§impl Debug for CampBootstrapPolicy
impl Debug for CampBootstrapPolicy
Source§impl Default for CampBootstrapPolicy
impl Default for CampBootstrapPolicy
impl Eq for CampBootstrapPolicy
Source§impl PartialEq for CampBootstrapPolicy
impl PartialEq for CampBootstrapPolicy
impl StructuralPartialEq for CampBootstrapPolicy
Auto Trait Implementations§
impl Freeze for CampBootstrapPolicy
impl RefUnwindSafe for CampBootstrapPolicy
impl Send for CampBootstrapPolicy
impl Sync for CampBootstrapPolicy
impl Unpin for CampBootstrapPolicy
impl UnsafeUnpin for CampBootstrapPolicy
impl UnwindSafe for CampBootstrapPolicy
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