pub struct DecisionInputImage {
pub image_url: String,
pub detail: Option<ImageDetailParam>,
pub prompt_cache_breakpoint: Option<PromptCacheBreakpoint>,
}Available on crate feature
decision-types only.Expand description
An image provided as a base64 data URL or a publicly accessible HTTP(S) URL. File IDs are not supported.
Fields§
§image_url: StringA base64-encoded image in a data URL or a publicly accessible HTTP(S) image URL.
detail: Option<ImageDetailParam>The image detail level, using the selected model’s image profile. Defaults to auto.
prompt_cache_breakpoint: Option<PromptCacheBreakpoint>Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request’s prompt_cache_options.ttl; the boundary is not rounded to a token block.
Trait Implementations§
Source§impl Clone for DecisionInputImage
impl Clone for DecisionInputImage
Source§impl Debug for DecisionInputImage
impl Debug for DecisionInputImage
Source§impl Default for DecisionInputImage
impl Default for DecisionInputImage
Source§impl<'de> Deserialize<'de> for DecisionInputImage
impl<'de> Deserialize<'de> for DecisionInputImage
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
Source§impl PartialEq for DecisionInputImage
impl PartialEq for DecisionInputImage
Source§impl Serialize for DecisionInputImage
impl Serialize for DecisionInputImage
impl StructuralPartialEq for DecisionInputImage
Auto Trait Implementations§
impl Freeze for DecisionInputImage
impl RefUnwindSafe for DecisionInputImage
impl Send for DecisionInputImage
impl Sync for DecisionInputImage
impl Unpin for DecisionInputImage
impl UnsafeUnpin for DecisionInputImage
impl UnwindSafe for DecisionInputImage
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