@@ -2,7 +2,7 @@ use std::{path::PathBuf, sync::Mutex};
22
33use serde:: { Deserialize , Serialize } ;
44use strum_macros:: EnumString ;
5- use rs_plugin_common_interfaces:: { CredentialType , PluginInformation , PluginType } ;
5+ use rs_plugin_common_interfaces:: { CredentialType , CustomParam , PluginInformation , PluginType } ;
66use extism:: Plugin as ExtismPlugin ;
77use super :: { credential:: Credential , ElementAction } ;
88
@@ -41,6 +41,8 @@ pub struct Plugin {
4141 pub version : u16 ,
4242 #[ serde( skip_serializing_if = "Option::is_none" ) ]
4343 pub credential_type : Option < CredentialType > ,
44+ #[ serde( default , skip_serializing_if = "Vec::is_empty" ) ]
45+ pub params : Vec < CustomParam > ,
4446}
4547
4648impl From < & PluginWasm > for Plugin {
@@ -59,7 +61,8 @@ impl From<&PluginWasm> for Plugin {
5961 publisher : Some ( value. infos . publisher . clone ( ) ) ,
6062 version : value. infos . version ,
6163 description : value. infos . description . clone ( ) ,
62- credential_type : value. infos . credential_kind . clone ( )
64+ credential_type : value. infos . credential_kind . clone ( ) ,
65+ params : value. infos . settings . clone ( ) ,
6366 }
6467 }
6568}
0 commit comments