mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
docs(rust): clarify request body behavior enums
This commit is contained in:
parent
6b0cb747b1
commit
cc38e46ff9
1 changed files with 6 additions and 0 deletions
|
|
@ -1,12 +1,18 @@
|
|||
/// Representation exposed to `pre_call`.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum CallbackBodyView {
|
||||
/// A mutable structured object.
|
||||
Structured,
|
||||
/// An encoded string.
|
||||
Serialized,
|
||||
}
|
||||
|
||||
/// When transport captures the request body.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum BodyReadPoint {
|
||||
/// Before `pre_call`.
|
||||
BuildRequest,
|
||||
/// After `pre_call`.
|
||||
Send,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue