OpenAgentID documentation
Source referencesRust module referenceoas-document

oas-document · lifecycle

Declared module signatures, types, configuration, and source documentation.

Source: oas/oas/oas-document/src/lifecycle.rs. SHA-256: 156e12d04f059e681b4f389c5f15b84ffc412beb105c5b495434a29c9263a0df.

This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.

lifecycle::LifecycleStatus

The lifecycle statuses an OAS entity can be in.

Per OAS Specification §5.3, the valid lifecycle statuses are: nascent, active, dormant, suspended, terminated, archived.

Examples

use oas_document::lifecycle::LifecycleStatus;
use std::str::FromStr;

let status = LifecycleStatus::from_str("active").unwrap();
assert_eq!(status, LifecycleStatus::Active);
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum LifecycleStatus {
    /// Entity is created but not yet operational.
    Nascent,
    /// Entity is operational and accepting interactions.
    Active,
    /// Entity is temporarily inactive but may be reactivated.
    Dormant,
    /// Entity has been suspended (e.g., for policy violation).
    Suspended,
    /// Entity has been permanently shut down.
    Terminated,
    /// Entity is preserved for historical/audit purposes.
    Archived,
}

Source line: 25.

lifecycle::LifecycleStatus::as_str

Returns the string representation.

pub fn as_str(&self) -> &'static str;

Source line: 42.

On this page