pub struct ImageParams {
pub prompt: String,
pub width: u32,
pub height: u32,
pub steps: u32,
pub seed: Option<u64>,
pub ext: String,
}Fields§
§prompt: String§width: u32§height: u32§steps: u32§seed: Option<u64>§ext: StringTrait Implementations§
Source§impl Clone for ImageParams
impl Clone for ImageParams
Source§fn clone(&self) -> ImageParams
fn clone(&self) -> ImageParams
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 ImageParams
impl Debug for ImageParams
Source§impl<'de> Deserialize<'de> for ImageParams
impl<'de> Deserialize<'de> for ImageParams
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 Freeze for ImageParams
impl RefUnwindSafe for ImageParams
impl Send for ImageParams
impl Sync for ImageParams
impl Unpin for ImageParams
impl UnsafeUnpin for ImageParams
impl UnwindSafe for ImageParams
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