pub struct NoOpFormatter;Trait Implementations§
Source§impl Debug for NoOpFormatter
impl Debug for NoOpFormatter
Source§impl Default for NoOpFormatter
impl Default for NoOpFormatter
Source§fn default() -> NoOpFormatter
fn default() -> NoOpFormatter
Returns the “default value” for a type. Read more
Source§impl OAIPromptFormatter for NoOpFormatter
impl OAIPromptFormatter for NoOpFormatter
fn supports_add_generation_prompt(&self) -> bool
fn render(&self, req: &dyn OAIChatLikeRequest) -> Result<String>
Source§fn image_placeholder_template(&self) -> Option<&'static str>
fn image_placeholder_template(&self) -> Option<&'static str>
Per-family image-placeholder template used when the chat template
requires string content and the request contains images.
{n} in
the template is the 1-based image index. None when the
formatter has no flatten strategy — MM-aware routing falls back
to text-prefix routing for those families.Auto Trait Implementations§
impl Freeze for NoOpFormatter
impl RefUnwindSafe for NoOpFormatter
impl Send for NoOpFormatter
impl Sync for NoOpFormatter
impl Unpin for NoOpFormatter
impl UnsafeUnpin for NoOpFormatter
impl UnwindSafe for NoOpFormatter
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> 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