Skip to content

Conversation

@datibbaw
Copy link

@datibbaw datibbaw commented Oct 2, 2025

This change refactors the serialize_property_path function to be agnostic over any type that can provide a list of string slices, which allows for e.g. constant values to be passed without having to allocate a Vec wrapper.

const ISTIO_PEER_PRINCIPAL: &[&str] = &["filter_state", "io.istio.peer_principal"];

if let Some(value) = context.get_property(ISTIO_PEER_PRINCIPAL) {
   // do something awesome
}

@datibbaw datibbaw requested a review from PiotrSikora as a code owner October 2, 2025 06:02
@datibbaw datibbaw force-pushed the datibbaw/property-path-with-trait-bounds branch from bb31a49 to 2512500 Compare October 2, 2025 06:06
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.

1 participant