pub struct WorkerCard {
pub host_app: String,
pub model: String,
pub model_source: ModelSource,
pub tools: Vec<String>,
pub budget: Budget,
pub availability: Availability,
}Fields§
§host_app: String§model: String§model_source: ModelSource§tools: Vec<String>§budget: Budget§availability: AvailabilityImplementations§
Source§impl WorkerCard
impl WorkerCard
Sourcepub fn new(
host_app: &str,
model: Option<&str>,
tools: impl IntoIterator<Item = String>,
budget: Budget,
availability: Availability,
) -> Self
pub fn new( host_app: &str, model: Option<&str>, tools: impl IntoIterator<Item = String>, budget: Budget, availability: Availability, ) -> Self
A card within the contract bounds: the model is the host’s
self-report when there is one, else unknown; tools are the lean-ctx
tool names the host was offered, deduplicated, sorted and capped.
Trait Implementations§
Source§impl Clone for WorkerCard
impl Clone for WorkerCard
Source§impl Debug for WorkerCard
impl Debug for WorkerCard
Source§impl<'de> Deserialize<'de> for WorkerCard
impl<'de> Deserialize<'de> for WorkerCard
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 WorkerCard
Source§impl PartialEq for WorkerCard
impl PartialEq for WorkerCard
Source§impl Serialize for WorkerCard
impl Serialize for WorkerCard
impl StructuralPartialEq for WorkerCard
Auto Trait Implementations§
impl Forget for WorkerCard
impl Freeze for WorkerCard
impl Move for WorkerCard
impl RefUnwindSafe for WorkerCard
impl Send for WorkerCard
impl Sync for WorkerCard
impl Unpin for WorkerCard
impl UnsafeUnpin for WorkerCard
impl UnwindSafe for WorkerCard
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more