pub struct ResolvedMapping {
pub mapping_id: String,
pub client_name: String,
pub upstream_name: String,
pub billing: ChannelBilling,
pub allowed_protocols: Vec<String>,
}Expand description
Parsed in-memory representation of a model mapping.
Fields§
§mapping_id: StringMapping ID for quota tracking.
client_name: StringClient-facing model name.
upstream_name: StringUpstream model name sent to the API.
billing: ChannelBillingBilling type (flat-fee or metered).
allowed_protocols: Vec<String>Protocols this mapping is valid for. Empty = all protocols (backward compatible).
Trait Implementations§
Source§impl Clone for ResolvedMapping
impl Clone for ResolvedMapping
Source§fn clone(&self) -> ResolvedMapping
fn clone(&self) -> ResolvedMapping
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 ResolvedMapping
impl RefUnwindSafe for ResolvedMapping
impl Send for ResolvedMapping
impl Sync for ResolvedMapping
impl Unpin for ResolvedMapping
impl UnsafeUnpin for ResolvedMapping
impl UnwindSafe for ResolvedMapping
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