API classification

Every public struct and enum in the stable aitp surface (the types in crates/aitp/public-api.stable.txt) is in one of three classes. The class says what a later release may add to the type without a breaking change (STABILITY.md).

ClassWhat it means
non_exhaustive#[non_exhaustive]. A release may add a field or a variant. Outside aitp, a match needs a wildcard arm and a struct is built with its constructor, not a literal; its public fields can still be read and set.
private fieldsA struct with at least one private field. Callers build it with its constructor or builder, so a release may add a field.
exhaustiveCallers may match every variant or build the struct with a literal, so any new field or variant is a breaking change. Each one has a reason below.

A type is exhaustive only for a reason that outweighs that cost: a newtype whose one field is its value, a unit value, or a security decision whose callers must handle each outcome deliberately rather than through a wildcard arm.

scripts/api-classification.py reads each type's class from the rustdoc JSON of aitp built with the stable features. Each type is listed at its shortest public path. CI runs make api-classification-check, which fails on a stable type missing from the table, a type listed under the wrong class, or an exhaustive type without a reason. After a type is added, removed or reclassified, regenerate the table under Types with make api-classification; reasons already in the table are kept.

Types

TypeKindClassWhy exhaustive
aitp::core::Aidstructprivate fields
aitp::core::AidAlgorithmenumnon_exhaustive
aitp::core::AidParseErrorenumnon_exhaustive
aitp::core::AitpEnvelopestructnon_exhaustive
aitp::core::CheckedJsonstructprivate fields
aitp::core::CheckedJsonErrorstructprivate fields
aitp::core::EnvelopeParseErrorenumnon_exhaustive
aitp::core::EnvelopeStructureErrorenumnon_exhaustive
aitp::core::ErrorCodeenumnon_exhaustive
aitp::core::ExtensionsMapstructprivate fields
aitp::core::MessageTypeenumnon_exhaustive
aitp::core::MissingFieldErrorstructprivate fields
aitp::core::RawUrlstructprivate fields
aitp::core::Senderstructnon_exhaustive
aitp::core::TimestampstructexhaustiveA newtype over Unix seconds: its one field is the value.
aitp::core::UnknownErrorCodestructprivate fields
aitp::core::base64url::Base64UrlErrorenumnon_exhaustive
aitp::core::ids::InvalidTagstructnon_exhaustive
aitp::core::ids::V4Errorenumnon_exhaustive
aitp::core::jcs::JcsErrorenumnon_exhaustive
aitp::core::nonce_store::ConsumeOutcomeenumnon_exhaustive
aitp::core::nonce_store::InMemoryNonceStorestructprivate fields
aitp::core::nonce_store::IssuedNoncestructnon_exhaustive
aitp::core::nonce_store::NonceStoreErrorenumnon_exhaustive
aitp::crypto::AitpSigningKeystructprivate fields
aitp::crypto::AitpVerifyingKeystructprivate fields
aitp::crypto::BackendSignatureenumnon_exhaustive
aitp::crypto::BlockingSignerstructexhaustiveA newtype adapter: its one field is the wrapped signer.
aitp::crypto::CryptoErrorenumnon_exhaustive
aitp::crypto::Digest32structprivate fields
aitp::crypto::RawSignaturestructprivate fields
aitp::crypto::SignRequestenumnon_exhaustive
aitp::crypto::Signaturestructprivate fields
aitp::crypto::SignatureAlgorithmenumnon_exhaustive
aitp::crypto::SignerErrorenumnon_exhaustive
aitp::delegation::DelegationBuilderstructprivate fields
aitp::delegation::DelegationClaimsstructnon_exhaustive
aitp::delegation::DelegationErrorenumnon_exhaustive
aitp::delegation::DelegationVerifyContextstructnon_exhaustive
aitp::delegation::IssuedDelegationstructprivate fields
aitp::delegation::IssuedDelegationPartsstructnon_exhaustive
aitp::delegation::VerifiedDelegationstructprivate fields
aitp::delegation::VerifiedDelegationPartsstructnon_exhaustive
aitp::envelope::EnvelopeErrorenumnon_exhaustive
aitp::facade::FacadeErrorenumnon_exhaustive
aitp::facade::IdentityModeenumnon_exhaustive
aitp::facade::InitiatorConfigstructnon_exhaustive
aitp::facade::SessionContextstructprivate fields
aitp::facade::SessionContextPartsstructnon_exhaustive
aitp::facade::TctStorestructprivate fields
aitp::facade::TrustModeenumnon_exhaustive
aitp::handshake::CompletedHandshakestructprivate fields
aitp::handshake::CompletedHandshakePartsstructnon_exhaustive
aitp::handshake::GrantPolicyContextstructnon_exhaustive
aitp::handshake::GrantPolicyErrorstructprivate fields
aitp::handshake::HandshakeErrorenumnon_exhaustive
aitp::handshake::IdentityDescriptorstructnon_exhaustive
aitp::handshake::IdentityKindenumnon_exhaustive
aitp::handshake::IdentityVerifyContextstructnon_exhaustive
aitp::handshake::IdentityVerifyErrorenumnon_exhaustive
aitp::handshake::Initiatorstructprivate fields
aitp::handshake::JwkKeyMaterialenumnon_exhaustive
aitp::handshake::JwkParseErrorenumnon_exhaustive
aitp::handshake::JwkPublicKeystructnon_exhaustive
aitp::handshake::JwsAlgorithmenumnon_exhaustive
aitp::handshake::JwsVerifyErrorenumnon_exhaustive
aitp::handshake::MutualCommitAckPayloadstructnon_exhaustive
aitp::handshake::MutualCommitPayloadstructnon_exhaustive
aitp::handshake::MutualHelloAckPayloadstructnon_exhaustive
aitp::handshake::MutualHelloPayloadstructnon_exhaustive
aitp::handshake::NoPinnedKeysstructexhaustiveA unit value callers write as NoPinnedKeys.
aitp::handshake::OidcMintErrorstructprivate fields
aitp::handshake::OidcVerifyContextstructnon_exhaustive
aitp::handshake::OidcVerifyContextBuilderstructprivate fields
aitp::handshake::PeerConfigstructnon_exhaustive
aitp::handshake::PinnedKeyEntrystructnon_exhaustive
aitp::handshake::PinnedKeyEntryErrorenumnon_exhaustive
aitp::handshake::PinnedKeyVerifyContextstructnon_exhaustive
aitp::handshake::PinnedKeyVerifyContextBuilderstructprivate fields
aitp::handshake::PresentedIdentityenumnon_exhaustive
aitp::handshake::ResolveErrorenumnon_exhaustive
aitp::handshake::Responderstructprivate fields
aitp::handshake::StaticPinnedKeyStorestructprivate fields
aitp::handshake::SubjectBindingenumnon_exhaustive
aitp::handshake::VerifiedIdentitystructprivate fields
aitp::handshake::VerifiedPinnedKeystructprivate fields
aitp::handshake::VerifiedPinnedKeyPartsstructnon_exhaustive
aitp::handshake::admission::AdmissionChallengestructnon_exhaustive
aitp::handshake::admission::AdmissionErrorenumnon_exhaustive
aitp::handshake::admission::Admittedstructprivate fields
aitp::handshake::admission::AdmittedPartsstructnon_exhaustive
aitp::handshake::admission::ChallengeSourcestructprivate fields
aitp::handshake::admission::DenyListErrorenumnon_exhaustive
aitp::handshake::admission::IdentityPresentationPayloadstructnon_exhaustive
aitp::handshake::admission::InMemoryMessageIdDenyListstructprivate fields
aitp::handshake::admission::PinnedAdmissionstructprivate fields
aitp::handshake::admission::PinnedAdmissionBuilderstructprivate fields
aitp::handshake::admission::RecommendedLimiterstructprivate fields
aitp::handshake::admission::RefusalCauseenumnon_exhaustive
aitp::handshake::admission::TokenBucketLimiterstructprivate fields
aitp::handshake::admission::TransportIdenumnon_exhaustive
aitp::manifest::IdentityHintstructnon_exhaustive
aitp::manifest::Manifeststructnon_exhaustive
aitp::manifest::ManifestBuilderstructprivate fields
aitp::manifest::ManifestEnvelopestructnon_exhaustive
aitp::manifest::ManifestErrorenumnon_exhaustive
aitp::manifest::ManifestPopstructnon_exhaustive
aitp::manifest::ManifestVerifyContextstructnon_exhaustive
aitp::manifest::VerifiedManifeststructprivate fields
aitp::tct::AttestationVerifyContextstructnon_exhaustive
aitp::tct::AttestationVerifyContextBuilderstructprivate fields
aitp::tct::Cnfstructnon_exhaustive
aitp::tct::GrantVoucherClaimsstructnon_exhaustive
aitp::tct::IssuedTctstructprivate fields
aitp::tct::IssuedTctPartsstructnon_exhaustive
aitp::tct::PopChallengestructnon_exhaustive
aitp::tct::PopResponsestructnon_exhaustive
aitp::tct::RevocationEntrystructnon_exhaustive
aitp::tct::RevocationListstructnon_exhaustive
aitp::tct::RevocationListEnvelopestructnon_exhaustive
aitp::tct::RevocationListVerifyContextstructnon_exhaustive
aitp::tct::RevocationQuerystructnon_exhaustive
aitp::tct::RevocationSourceenumnon_exhaustive
aitp::tct::RevocationStatusenumexhaustiveA security decision: a new outcome must break callers' matches, so none is handled by a wildcard arm.
aitp::tct::RevocationUnavailablestructprivate fields
aitp::tct::TctBuilderstructprivate fields
aitp::tct::TctClaimsstructnon_exhaustive
aitp::tct::TctErrorenumnon_exhaustive
aitp::tct::TctVerifyContextstructnon_exhaustive
aitp::tct::TctVerifyContextBuilderstructprivate fields
aitp::tct::TctVerifyContextErrorenumnon_exhaustive
aitp::tct::VerifiedAttestationstructprivate fields
aitp::tct::VerifiedAttestationPartsstructnon_exhaustive
aitp::tct::VerifiedTctstructprivate fields
aitp::tct::VerifiedTctPartsstructnon_exhaustive
aitp::transport::ClientConfigstructprivate fields
aitp::transport::EmptyRevocationProviderstructprivate fields
aitp::transport::FetchErrorenumnon_exhaustive
aitp::transport::GuardModeenumnon_exhaustive
aitp::transport::HandshakeServerstructprivate fields
aitp::transport::HostGuardstructprivate fields
aitp::transport::HostGuardErrorenumnon_exhaustive
aitp::transport::InMemoryReplayGuardstructprivate fields
aitp::transport::JwksFetcherstructprivate fields
aitp::transport::JwksFetcherErrorenumnon_exhaustive
aitp::transport::KeyResolutionFailModeenumnon_exhaustive
aitp::transport::KeyResolutionOutcomeenumexhaustiveA security decision: a new outcome must break callers' matches, so none is handled by a wildcard arm.
aitp::transport::KeyResolutionPolicystructprivate fields
aitp::transport::KeyResolutionPolicyBuilderstructprivate fields
aitp::transport::ManifestFetcherstructprivate fields
aitp::transport::ManifestServerstructprivate fields
aitp::transport::PreparedRevocationstructprivate fields
aitp::transport::RateLimitConfigstructnon_exhaustive
aitp::transport::RetryPolicystructprivate fields
aitp::transport::RetryPolicyBuilderstructprivate fields
aitp::transport::RevocationErrorenumnon_exhaustive
aitp::transport::RevocationFailModeenumnon_exhaustive
aitp::transport::RevocationFetcherstructprivate fields
aitp::transport::RevocationPolicystructnon_exhaustive
aitp::transport::ServeConfigstructnon_exhaustive
aitp::transport::StaticPinnedIssuerKeyStorestructprivate fields
aitp::transport::TrustedProxystructprivate fields
aitp::transport::TrustedProxyParseErrorstructprivate fields