butterbidi/script/types/target

Types

pub type ContextTarget {
  ContextTarget(
    context: browsing_context.BrowsingContext,
    sandbox: option.Option(String),
  )
}

Constructors

pub type Target {
  Context(ContextTarget)
}

Constructors

Values

pub fn context_target_to_json(
  context_target: ContextTarget,
) -> json.Json
pub fn new_context_target(
  context: browsing_context.BrowsingContext,
) -> Target
pub fn target_to_json(target: Target) -> json.Json
pub fn with_sandbox(
  context_target: ContextTarget,
  sandbox: String,
) -> Target
Search Document