pub enum Subject {
Endpoint,
Model,
}Expand description
What a step is actually measuring — and therefore whether its answer survives a relay.
This is the distinction that matters to anyone probing an endpoint that is not the vendor’s own. Ask “is this endpoint’s error envelope well formed” through three hops and you have measured the hop nearest you; ask “does the text coming back read like the model it claims to be” and you have measured whatever generated the tokens, however many hops away it sits, because the tokens themselves are the evidence.
A marketplace verifying a seller reachable only through its own gateway must
run Subject::Model steps and skip the rest: the endpoint steps would all
be describing the gateway, identically for every seller, at the cost of a
real request each. Running the whole suite there is not merely wasteful —
the contract steps deliberately send malformed and unauthenticated requests,
which is exactly the traffic pattern that gets a seller’s upstream account
flagged for abuse.
Variants§
Endpoint
The HTTP endpoint itself: its contract, its error shapes, its headers, and the usage numbers it reports. Behind a relay, these describe the relay.
Model
The model generating the text. Survives any number of relay hops.
Trait Implementations§
impl Copy for Subject
impl Eq for Subject
impl StructuralPartialEq for Subject
Auto Trait Implementations§
impl Freeze for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnsafeUnpin for Subject
impl UnwindSafe for Subject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.