butterbidi/browsing_context/commands/get_tree
Types
pub type GetTreeParameters {
GetTreeParameters(
max_depth: option.Option(Int),
root: option.Option(browsing_context.BrowsingContext),
)
}
Constructors
-
GetTreeParameters( max_depth: option.Option(Int), root: option.Option(browsing_context.BrowsingContext), )
pub type GetTreeResult {
GetTreeResult(contexts: info.InfoList)
}
Constructors
-
GetTreeResult(contexts: info.InfoList)
Values
pub const default: GetTreeParameters
pub fn get_tree_parameters_to_json(
get_tree_parameters: GetTreeParameters,
) -> json.Json
pub fn get_tree_result_decoder() -> decode.Decoder(GetTreeResult)
pub fn with_max_depth(
get_tree_parameters: GetTreeParameters,
max_depth: Int,
) -> GetTreeParameters
pub fn with_root(
get_tree_parameters: GetTreeParameters,
root: browsing_context.BrowsingContext,
) -> GetTreeParameters