pub struct CopilotExpAssignmentResponse {
pub features: Vec<String>,
pub flights: HashMap<String, String>,
pub configs: Vec<ExpConfigEntry>,
pub parameter_groups: Option<Value>,
pub flighting_version: Option<i64>,
pub impression_id: Option<String>,
pub assignment_context: String,
}Expand description
ExP (“flight”) assignment data, in the same JSON shape the Copilot CLI fetches from the experimentation service.
Field names serialize as PascalCase (Features, Flights, …) to match
the on-the-wire contract consumed by the runtime.
Fields§
§features: Vec<String>Enabled feature names.
flights: HashMap<String, String>Assigned flights keyed by flight name.
configs: Vec<ExpConfigEntry>Configuration entries carrying typed parameter values.
parameter_groups: Option<Value>Opaque parameter-group payload passed through untouched. Optional.
flighting_version: Option<i64>Version of the flighting configuration. Optional.
impression_id: Option<String>Impression identifier for the assignment. Optional.
assignment_context: StringAssignment context string forwarded to CAPI and telemetry.
Trait Implementations§
Source§impl Clone for CopilotExpAssignmentResponse
impl Clone for CopilotExpAssignmentResponse
Source§fn clone(&self) -> CopilotExpAssignmentResponse
fn clone(&self) -> CopilotExpAssignmentResponse
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 CopilotExpAssignmentResponse
impl Debug for CopilotExpAssignmentResponse
Source§impl Default for CopilotExpAssignmentResponse
impl Default for CopilotExpAssignmentResponse
Source§fn default() -> CopilotExpAssignmentResponse
fn default() -> CopilotExpAssignmentResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CopilotExpAssignmentResponse
impl<'de> Deserialize<'de> for CopilotExpAssignmentResponse
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 StructuralPartialEq for CopilotExpAssignmentResponse
Auto Trait Implementations§
impl Freeze for CopilotExpAssignmentResponse
impl RefUnwindSafe for CopilotExpAssignmentResponse
impl Send for CopilotExpAssignmentResponse
impl Sync for CopilotExpAssignmentResponse
impl Unpin for CopilotExpAssignmentResponse
impl UnsafeUnpin for CopilotExpAssignmentResponse
impl UnwindSafe for CopilotExpAssignmentResponse
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