// Copyright (c) 2026, Salesforce, Inc.,
// All rights reserved.
// For full license text, see the LICENSE.txt file
//! Extractors are used to extract data from the context.
usestd::convert::Infallible;usesuper::{context::ConfigureContext, FromContext};#[derive(Clone, Debug, Hash)]/// The serialized configuration of the plugin
pubstructConfiguration(pub Vec<u8>);implDefault forConfiguration{fndefault()->Self{Self("{}".as_bytes().to_vec())}}implFromContext<ConfigureContext>forConfiguration{typeError= Infallible;fnfrom_context(context:&ConfigureContext)->Result<Self, Self::Error>{Ok(context
.host
.get_plugin_configuration().map(Configuration).unwrap_or_default())}}