pub enum ServiceModels {
List(BTreeSet<String>),
Map(BTreeMap<String, ServiceModelSettings>),
}Expand description
Requires: Docker Compose 2.38.0 and later
Defines which AI models the service should use at runtime. Each referenced model must be defined under the models top-level element.
See more: https://docs.docker.com/reference/compose-file/services/#models
Variants§
Trait Implementations§
Source§impl Clone for ServiceModels
impl Clone for ServiceModels
Source§fn clone(&self) -> ServiceModels
fn clone(&self) -> ServiceModels
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceModels
impl Debug for ServiceModels
Source§impl<'de> Deserialize<'de> for ServiceModels
impl<'de> Deserialize<'de> for ServiceModels
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
Source§impl Ord for ServiceModels
impl Ord for ServiceModels
Source§fn cmp(&self, other: &ServiceModels) -> Ordering
fn cmp(&self, other: &ServiceModels) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServiceModels
impl PartialEq for ServiceModels
Source§impl PartialOrd for ServiceModels
impl PartialOrd for ServiceModels
Source§impl Serialize for ServiceModels
impl Serialize for ServiceModels
impl Eq for ServiceModels
impl StructuralPartialEq for ServiceModels
Auto Trait Implementations§
impl Freeze for ServiceModels
impl RefUnwindSafe for ServiceModels
impl Send for ServiceModels
impl Sync for ServiceModels
impl Unpin for ServiceModels
impl UnsafeUnpin for ServiceModels
impl UnwindSafe for ServiceModels
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.