pub enum ImageModel {
Sdxl,
FluxPro,
FluxDev,
FluxSchnell,
DallE2,
DallE3,
}
Variants§
Implementations§
source§impl ModelKind
impl ModelKind
pub fn to_api_friendly_name(&self) -> &'static str
pub fn to_human_friendly_name(&self) -> &'static str
pub fn uses_version_hash(&self) -> bool
pub fn dollars_per_1m_seconds(&self) -> u64
pub fn dollars_per_1m_image(&self) -> Option<u64>
pub fn api_timeout(&self) -> u64
pub fn get_api_provider(&self) -> ApiProvider
Trait Implementations§
impl Copy for ModelKind
impl Eq for ModelKind
impl StructuralPartialEq for ModelKind
Auto Trait Implementations§
impl Freeze for ModelKind
impl RefUnwindSafe for ModelKind
impl Send for ModelKind
impl Sync for ModelKind
impl Unpin for ModelKind
impl UnwindSafe for ModelKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.