pub enum ImageGenerationCallEvent {
InProgress,
Generating,
PartialImage,
Completed,
}Expand description
Image generation call events for streaming.
Mirrors OpenAI Python SDK 2.8.1 response_image_gen_call_*_event.py and
.claude/_audit/openai-responses-api-spec.md §tools (image_generation).
PartialImage is emitted 0-3 times per call when the tool is configured
with partial_images.
Variants§
Implementations§
Source§impl ImageGenerationCallEvent
impl ImageGenerationCallEvent
pub const IN_PROGRESS: &'static str = "response.image_generation_call.in_progress"
pub const GENERATING: &'static str = "response.image_generation_call.generating"
pub const PARTIAL_IMAGE: &'static str = "response.image_generation_call.partial_image"
pub const COMPLETED: &'static str = "response.image_generation_call.completed"
pub const fn as_str(self) -> &'static str
Trait Implementations§
Source§impl Clone for ImageGenerationCallEvent
impl Clone for ImageGenerationCallEvent
Source§fn clone(&self) -> ImageGenerationCallEvent
fn clone(&self) -> ImageGenerationCallEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImageGenerationCallEvent
Source§impl Debug for ImageGenerationCallEvent
impl Debug for ImageGenerationCallEvent
Source§impl Display for ImageGenerationCallEvent
impl Display for ImageGenerationCallEvent
impl Eq for ImageGenerationCallEvent
Source§impl Hash for ImageGenerationCallEvent
impl Hash for ImageGenerationCallEvent
Source§impl PartialEq for ImageGenerationCallEvent
impl PartialEq for ImageGenerationCallEvent
Source§fn eq(&self, other: &ImageGenerationCallEvent) -> bool
fn eq(&self, other: &ImageGenerationCallEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageGenerationCallEvent
Auto Trait Implementations§
impl Freeze for ImageGenerationCallEvent
impl RefUnwindSafe for ImageGenerationCallEvent
impl Send for ImageGenerationCallEvent
impl Sync for ImageGenerationCallEvent
impl Unpin for ImageGenerationCallEvent
impl UnsafeUnpin for ImageGenerationCallEvent
impl UnwindSafe for ImageGenerationCallEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP