1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2026, Salesforce, Inc.,
// All rights reserved.
// For full license text, see the LICENSE.txt file
//! Contracts API surface
//!
//! Public API for validating client credentials against API contracts pulled
//! from Anypoint Platform. This module exposes:
//!
//! - [`validator`]: the [`ContractValidator`] type used to fetch/update contracts and
//! perform `authorize` and `authenticate` operations.
//! - [`basic_auth`]: helpers to parse HTTP Basic `Authorization` headers.
//! - [`credentials`]: typed newtypes for client credentials.
//! - [`error`]: error types for authentication/authorization/update flows.
//!
//! Internal submodules `authentication` and `authorization` implement the
//! underlying logic and are not exported.
/// The information regarding the client that was authenticated or authorized.