pub struct LimitDef {
pub num_ctx: Option<u32>,
pub max_output: Option<u32>,
}Expand description
One model’s limits.
Fields§
§num_ctx: Option<u32>§max_output: Option<u32>Trait Implementations§
Source§impl<'de> Deserialize<'de> for LimitDef
impl<'de> Deserialize<'de> for LimitDef
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
Auto Trait Implementations§
impl Forget for LimitDef
impl Freeze for LimitDef
impl Move for LimitDef
impl RefUnwindSafe for LimitDef
impl Send for LimitDef
impl Sync for LimitDef
impl Unpin for LimitDef
impl UnsafeUnpin for LimitDef
impl UnwindSafe for LimitDef
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