pub enum ProviderEvent {
Started,
Progress {
stage: String,
},
PartialImage {
index: u8,
partial_index: u8,
b64_json: String,
},
Completed {
response: Box<ImageResponse>,
},
}Expand description
Incremental provider progress.
Variants§
Started
Provider accepted the operation.
Progress
Optional textual progress that contains no prompt or credential data.
PartialImage
A bounded partial image payload.
Fields
Completed
Provider operation completed.
Fields
§
response: Box<ImageResponse>Normalized provider response before artifact publication.
Trait Implementations§
Source§impl Clone for ProviderEvent
impl Clone for ProviderEvent
Source§fn clone(&self) -> ProviderEvent
fn clone(&self) -> ProviderEvent
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 moreSource§impl Debug for ProviderEvent
impl Debug for ProviderEvent
Source§impl<'de> Deserialize<'de> for ProviderEvent
impl<'de> Deserialize<'de> for ProviderEvent
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
impl Eq for ProviderEvent
Source§impl JsonSchema for ProviderEvent
impl JsonSchema for ProviderEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProviderEvent
impl PartialEq for ProviderEvent
Source§impl Serialize for ProviderEvent
impl Serialize for ProviderEvent
impl StructuralPartialEq for ProviderEvent
Auto Trait Implementations§
impl Freeze for ProviderEvent
impl RefUnwindSafe for ProviderEvent
impl Send for ProviderEvent
impl Sync for ProviderEvent
impl Unpin for ProviderEvent
impl UnsafeUnpin for ProviderEvent
impl UnwindSafe for ProviderEvent
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