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: u16
The web socket port listening for the plugin.
uuid: String
The uuid of the plugin.
event: String
The event the plugin should send to register with the Stream Deck software.
info: RegistrationInfo
Information 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
Auto Trait Implementations§
impl Freeze for RegistrationParams
impl RefUnwindSafe for RegistrationParams
impl Send for RegistrationParams
impl Sync for RegistrationParams
impl Unpin for RegistrationParams
impl UnwindSafe for RegistrationParams
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