pub struct BackendTarget { /* private fields */ }Implementations§
Source§impl BackendTarget
impl BackendTarget
pub fn new(initial: String) -> Self
pub async fn set(&self, new_target: String)
pub async fn get(&self) -> String
Sourcepub async fn is_initialized(&self) -> bool
pub async fn is_initialized(&self) -> bool
Check if backend target is properly initialized
Sourcepub async fn generate_url(&self) -> String
pub async fn generate_url(&self) -> String
Main generation endpoint used by your Python code Your Python Core_engine.rs calls the root endpoint “/”
Sourcepub async fn health_url(&self) -> String
pub async fn health_url(&self) -> String
Health check endpoint for connection testing
Sourcepub async fn chat_completions_url(&self) -> String
pub async fn chat_completions_url(&self) -> String
Chat completions (OpenAI-compatible endpoint used by proxy)
Sourcepub async fn direct_generation_url(&self) -> String
pub async fn direct_generation_url(&self) -> String
NEW: Direct endpoint for your Python code’s current structure This matches what your Core_engine.rs _post() method expects
Trait Implementations§
Source§impl Clone for BackendTarget
impl Clone for BackendTarget
Source§fn clone(&self) -> BackendTarget
fn clone(&self) -> BackendTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackendTarget
impl RefUnwindSafe for BackendTarget
impl Send for BackendTarget
impl Sync for BackendTarget
impl Unpin for BackendTarget
impl UnsafeUnpin for BackendTarget
impl UnwindSafe for BackendTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more