pub struct NegotiatedRequest {
pub requested: GenerationParameters,
pub effective_request: ImageRequest,
pub normalizations: Vec<Normalization>,
}Expand description
Request after provider capability negotiation.
Fields§
§requested: GenerationParametersOriginal generation parameters.
effective_request: ImageRequestRequest containing effective parameters and prompt policy transforms.
normalizations: Vec<Normalization>Every explicit transformation applied during negotiation.
Trait Implementations§
Source§impl Clone for NegotiatedRequest
impl Clone for NegotiatedRequest
Source§fn clone(&self) -> NegotiatedRequest
fn clone(&self) -> NegotiatedRequest
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 NegotiatedRequest
impl Debug for NegotiatedRequest
Source§impl<'de> Deserialize<'de> for NegotiatedRequest
impl<'de> Deserialize<'de> for NegotiatedRequest
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 NegotiatedRequest
Source§impl JsonSchema for NegotiatedRequest
impl JsonSchema for NegotiatedRequest
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 NegotiatedRequest
impl PartialEq for NegotiatedRequest
Source§impl Serialize for NegotiatedRequest
impl Serialize for NegotiatedRequest
impl StructuralPartialEq for NegotiatedRequest
Auto Trait Implementations§
impl Freeze for NegotiatedRequest
impl RefUnwindSafe for NegotiatedRequest
impl Send for NegotiatedRequest
impl Sync for NegotiatedRequest
impl Unpin for NegotiatedRequest
impl UnsafeUnpin for NegotiatedRequest
impl UnwindSafe for NegotiatedRequest
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