Struct streamdeck_rs::registration::RegistrationParams
source · pub struct RegistrationParams {
pub port: u16,
pub uuid: String,
pub event: String,
pub info: RegistrationInfo,
}Expand description
Registration parameters provided to the plugin on startup.
Fields§
§port: u16The web socket port listening for the plugin.
uuid: StringThe uuid of the plugin.
event: StringThe event the plugin should send to register with the Stream Deck software.
info: RegistrationInfoInformation about the environment the plugin is being loaded into.
Implementations§
source§impl RegistrationParams
impl RegistrationParams
sourcepub fn from_args<I: IntoIterator<Item = String>>(
args: I
) -> Result<RegistrationParams, RegistrationParamsError>
pub fn from_args<I: IntoIterator<Item = String>>(
args: I
) -> Result<RegistrationParams, RegistrationParamsError>
Pull the registration parameters out of a command line.
Examples
RegistrationParams::from_args(env::args())Trait Implementations§
source§impl<'de> Deserialize<'de> for RegistrationParams
impl<'de> Deserialize<'de> for RegistrationParams
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