pub struct ApiRecord {
pub provider_id: String,
pub api_id: String,
pub major_version: i32,
pub url: Url,
pub additional_metadata: Option<HashMap<String, String>>,
pub last_updated: OffsetDateTime,
pub revision: i64,
pub status: ApiStatus,
}Expand description
A directory entry describing how to reach one major version of an API service.
Fields§
§provider_id: StringUnique identifier of the responsible API provider (OU from EMT.API cert).
api_id: StringUnique identifier of the API service (e.g. controlMeasuresV1).
major_version: i32Major version of the API service.
url: UrlBase URL of the API endpoint.
additional_metadata: Option<HashMap<String, String>>Optional supplementary key-value metadata defined by the service spec.
last_updated: OffsetDateTimeTimestamp of the last update to this record (RFC 3339 / ISO 8601).
revision: i64Monotonically increasing revision counter; starts at 1.
status: ApiStatusCurrent operational status of the registered endpoint.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiRecord
impl<'de> Deserialize<'de> for ApiRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ApiRecord
Auto Trait Implementations§
impl Freeze for ApiRecord
impl RefUnwindSafe for ApiRecord
impl Send for ApiRecord
impl Sync for ApiRecord
impl Unpin for ApiRecord
impl UnsafeUnpin for ApiRecord
impl UnwindSafe for ApiRecord
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