windows-webview 0.100.0

Windows WebView2 library
Documentation
1
2
3
4
5
6
7
8
9
10
/// Identifies a script registered on document creation.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ScriptId(pub(crate) String);

impl ScriptId {
    /// Returns the underlying WebView2 script identifier.
    pub fn as_str(&self) -> &str {
        &self.0
    }
}