pub struct SelectedMappingInfo {
pub channel_id: String,
pub mapping_id: String,
pub client_name: String,
pub upstream_name: String,
pub is_flat_fee: bool,
pub pricing: Option<Pricing>,
pub pricing_snapshot_json: String,
}Expand description
Lightweight mapping info stored in the context extension.
Fields§
§channel_id: StringChannel ID for cost tracking.
mapping_id: StringModel mapping ID for quota tracking.
client_name: StringClient-facing model name.
upstream_name: StringUpstream model name sent to the API.
is_flat_fee: boolWhether this mapping uses flat-fee billing.
pricing: Option<Pricing>Pricing snapshot at selection time (metered only).
pricing_snapshot_json: StringSerialized pricing for audit trail.
Trait Implementations§
Source§impl Clone for SelectedMappingInfo
impl Clone for SelectedMappingInfo
Source§fn clone(&self) -> SelectedMappingInfo
fn clone(&self) -> SelectedMappingInfo
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 moreAuto Trait Implementations§
impl Freeze for SelectedMappingInfo
impl RefUnwindSafe for SelectedMappingInfo
impl Send for SelectedMappingInfo
impl Sync for SelectedMappingInfo
impl Unpin for SelectedMappingInfo
impl UnsafeUnpin for SelectedMappingInfo
impl UnwindSafe for SelectedMappingInfo
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