pub struct VertexRateCardEntry {Show 14 fields
pub upstream: String,
pub provider: ProviderId,
pub id: ModelId,
pub upstream_model: String,
pub allow_preview: bool,
pub launch_stage: DocumentedLaunchStage,
pub released: Option<NaiveDate>,
pub retires_on: Option<NaiveDate>,
pub price_until: Option<NaiveDate>,
pub docs: String,
pub pricing: ModelPricing,
pub capabilities: ModelCapabilities,
pub limits: ModelLimits,
pub aliases: Vec<ModelId>,
}Expand description
One model on the Vertex rate card, every field read from the official
documentation page named in docs.
upstream is the listing name ({publisher}/{model}); upstream_model is
what the wire sends — bare on the gemini wire, publisher-qualified on the
MaaS openai-chat surface. launch_stage and released are the stage and
release date the page states (released is absent when only a deprecation
notice still names the model); allow_preview publishes a model the page
marks preview or experimental. retires_on is the announced retirement
date and price_until the last day the recorded price applies when an
introductory price has an announced end — the scheduler warns ahead of both.
Fields§
§upstream: String§provider: ProviderId§id: ModelId§upstream_model: String§allow_preview: bool§launch_stage: DocumentedLaunchStage§released: Option<NaiveDate>§retires_on: Option<NaiveDate>§price_until: Option<NaiveDate>§docs: String§pricing: ModelPricing§capabilities: ModelCapabilities§limits: ModelLimits§aliases: Vec<ModelId>Implementations§
Source§impl VertexRateCardEntry
impl VertexRateCardEntry
pub fn publisher(&self) -> &str
pub fn is_supported(&self, today: NaiveDate) -> bool
pub fn is_retiring(&self, today: NaiveDate) -> bool
pub fn to_provider_model(&self) -> ProviderModel
Trait Implementations§
Source§impl Clone for VertexRateCardEntry
impl Clone for VertexRateCardEntry
Source§fn clone(&self) -> VertexRateCardEntry
fn clone(&self) -> VertexRateCardEntry
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 VertexRateCardEntry
impl Debug for VertexRateCardEntry
Source§impl<'de> Deserialize<'de> for VertexRateCardEntry
impl<'de> Deserialize<'de> for VertexRateCardEntry
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 VertexRateCardEntry
impl RefUnwindSafe for VertexRateCardEntry
impl Send for VertexRateCardEntry
impl Sync for VertexRateCardEntry
impl Unpin for VertexRateCardEntry
impl UnsafeUnpin for VertexRateCardEntry
impl UnwindSafe for VertexRateCardEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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