async_dashscope/operation/
request.rs

1
2/// A trait for abstracting over different DashScope request parameter types.
3///
4/// This allows for common handling of validation and other pre-flight checks
5/// before sending a request to the API.
6pub trait RequestTrait {
7    type P;
8    /// Returns the model name for this request.
9    fn model(&self) -> &str;
10
11    /// Returns a reference to the optional parameters for this request.
12    fn parameters(&self) -> Option<&Self::P>;
13
14}