pub struct PhaseId(/* private fields */);Expand description
Stable operator-defined phase identity. PhaseKind remains the executable
adapter kind; ordering and fallback use this independent string identity.
Implementations§
Source§impl PhaseId
impl PhaseId
pub const OPENAI_SUBSCRIPTION: &'static str = "openai_subscription"
pub const OLLAMA_CLOUD: &'static str = "ollama_cloud"
pub const OPENROUTER_API: &'static str = "openrouter_api"
pub const OLLAMA_LOCAL: &'static str = "ollama_local"
pub const QWEN_SUBSCRIPTION: &'static str = "qwen_subscription"
pub const QWEN_API: &'static str = "qwen_api"
pub const GROK_SUBSCRIPTION: &'static str = "grok_subscription"
pub const GROK_API: &'static str = "grok_api"
pub const ZAI_SUBSCRIPTION: &'static str = "zai_subscription"
pub const ZAI_API: &'static str = "zai_api"
pub const KIMI_SUBSCRIPTION: &'static str = "kimi_subscription"
pub const KIMI_API: &'static str = "kimi_api"
pub const DEEPSEEK_API: &'static str = "deepseek_api"
pub const CLAUDE_SUBSCRIPTION: &'static str = "claude_subscription"
pub const CLAUDE_API: &'static str = "claude_api"
pub const GEMINI_SUBSCRIPTION: &'static str = "gemini_subscription"
pub const GEMINI_API: &'static str = "gemini_api"
pub fn parse(value: impl Into<String>) -> Result<Self, RouteIdentityError>
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PhaseId
impl<'de> Deserialize<'de> for PhaseId
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 Eq for PhaseId
impl StructuralPartialEq for PhaseId
Auto Trait Implementations§
impl Freeze for PhaseId
impl RefUnwindSafe for PhaseId
impl Send for PhaseId
impl Sync for PhaseId
impl Unpin for PhaseId
impl UnsafeUnpin for PhaseId
impl UnwindSafe for PhaseId
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