Skip to main content

windows_webview/
script.rs

1/// Identifies a script registered on document creation.
2#[derive(Clone, Debug, PartialEq, Eq)]
3pub struct ScriptId(pub(crate) String);
4
5impl ScriptId {
6    /// Returns the underlying WebView2 script identifier.
7    pub fn as_str(&self) -> &str {
8        &self.0
9    }
10}