pub struct AdapterConfig {
pub name: String,
pub pattern: AdapterPattern,
pub core_path: String,
pub params: Vec<AdapterParam>,
pub returns: Option<String>,
pub error_type: Option<String>,
pub owner_type: Option<String>,
pub item_type: Option<String>,
pub gil_release: bool,
pub trait_name: Option<String>,
pub trait_method: Option<String>,
pub detect_async: bool,
}Expand description
Configuration for a single adapter.
Fields§
§name: String§pattern: AdapterPattern§core_path: StringFull Rust path to the core function/method (e.g., “html_to_markdown_rs::convert”)
params: Vec<AdapterParam>Parameters
returns: Option<String>Return type name
error_type: Option<String>Error type name
owner_type: Option<String>For async_method/streaming: the owning type name
item_type: Option<String>For streaming: the item type
gil_release: boolFor Python: release GIL during call
trait_name: Option<String>For callback_bridge: the Rust trait to implement (e.g., “SpikardHandler”)
trait_method: Option<String>For callback_bridge: the trait method name (e.g., “handle”)
detect_async: boolFor callback_bridge: whether to detect async callbacks at construction time
Trait Implementations§
Source§impl Clone for AdapterConfig
impl Clone for AdapterConfig
Source§fn clone(&self) -> AdapterConfig
fn clone(&self) -> AdapterConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AdapterConfig
impl Debug for AdapterConfig
Source§impl<'de> Deserialize<'de> for AdapterConfig
impl<'de> Deserialize<'de> for AdapterConfig
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
Auto Trait Implementations§
impl Freeze for AdapterConfig
impl RefUnwindSafe for AdapterConfig
impl Send for AdapterConfig
impl Sync for AdapterConfig
impl Unpin for AdapterConfig
impl UnsafeUnpin for AdapterConfig
impl UnwindSafe for AdapterConfig
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