Skip to content

rust: re-export ModelPolicyState and ModelPickerCategory from crate root#2051

Open
rinceyuan wants to merge 1 commit into
github:mainfrom
rinceyuan:fix/rust-reexport-model-enums
Open

rust: re-export ModelPolicyState and ModelPickerCategory from crate root#2051
rinceyuan wants to merge 1 commit into
github:mainfrom
rinceyuan:fix/rust-reexport-model-enums

Conversation

@rinceyuan

Copy link
Copy Markdown
Contributor

Closes #1674

\ModelPolicy\ and \Model\ are re-exported at the crate root, but their field-type enums \ModelPolicyState\ and \ModelPickerCategory\ are not. This forces consumers to reach into \copilot::rpc\ for types that logically belong alongside the already-exported structs.

This adds both enums to the curated \pub use\ block in \ ypes.rs, in alphabetical order.

Closes github#1674

Add ModelPickerCategory and ModelPolicyState to the curated pub use
block in types.rs. These enums are field types of Model and ModelPolicy
which are already re-exported, but the enums themselves required
importing from copilot::rpc.
@rinceyuan
rinceyuan requested a review from a team as a code owner July 22, 2026 03:30
@rinceyuan

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company=Microsoft

@rinceyuan

Copy link
Copy Markdown
Contributor Author

@stephentoub Tiny consistency fix — 2 missing enum re-exports for types whose parent structs are already at the crate root. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-export ModelPolicyState and ModelPickerCategory from the crate root alongside Model/ModelPolicy

1 participant