butterbidi/script/types/remote_value
Todo: Handle type, internal_id type
Types
pub type ArrayRemoteValue {
ArrayRemoteValue(
remote_type: String,
handle: option.Option(String),
internal_id: option.Option(String),
value: option.Option(ListRemoteValue),
)
}
Constructors
-
ArrayRemoteValue( remote_type: String, handle: option.Option(String), internal_id: option.Option(String), value: option.Option(ListRemoteValue), )
pub type ErrorRemoteValue {
ErrorRemoteValue(
remote_type: String,
handle: option.Option(String),
internal_id: option.Option(String),
)
}
Constructors
-
ErrorRemoteValue( remote_type: String, handle: option.Option(String), internal_id: option.Option(String), )
pub type ListRemoteValue {
ListRemoteValue(value: List(RemoteValue))
}
Constructors
-
ListRemoteValue(value: List(RemoteValue))
pub type NodeProperties {
NodeProperties(
node_type: Int,
child_node_count: Int,
attributes: option.Option(dict.Dict(String, String)),
children: option.Option(List(NodeRemoteValue)),
local_name: option.Option(String),
mode: option.Option(Mode),
node_value: option.Option(String),
shadow_root: option.Option(option.Option(NodeRemoteValue)),
)
}
Constructors
-
NodeProperties( node_type: Int, child_node_count: Int, attributes: option.Option(dict.Dict(String, String)), children: option.Option(List(NodeRemoteValue)), local_name: option.Option(String), mode: option.Option(Mode), node_value: option.Option(String), shadow_root: option.Option(option.Option(NodeRemoteValue)), )
pub type NodeRemoteValue {
NodeRemoteValue(
remote_type: String,
shared_id: option.Option(String),
handle: option.Option(String),
internal_id: option.Option(String),
value: option.Option(NodeProperties),
)
}
Constructors
-
NodeRemoteValue( remote_type: String, shared_id: option.Option(String), handle: option.Option(String), internal_id: option.Option(String), value: option.Option(NodeProperties), )
pub type RemoteValue {
PrimitiveProtocol(
primitive_protocol_value.PrimitiveProtocolValue,
)
ArrayRemote(ArrayRemoteValue)
ErrorRemote(ErrorRemoteValue)
NodeRemote(NodeRemoteValue)
}
Constructors
-
PrimitiveProtocol( primitive_protocol_value.PrimitiveProtocolValue, ) -
ArrayRemote(ArrayRemoteValue) -
ErrorRemote(ErrorRemoteValue) -
NodeRemote(NodeRemoteValue)
Values
pub fn array_remote_value_decoder() -> decode.Decoder(RemoteValue)
pub fn error_remote_value_decoder() -> decode.Decoder(RemoteValue)
pub fn list_remote_value_decoder() -> decode.Decoder(
ListRemoteValue,
)
pub fn new_node_remote_value(
remote_type: String,
) -> NodeRemoteValue
pub fn node_remote_decoder() -> decode.Decoder(RemoteValue)
pub fn node_remote_value_decoder() -> decode.Decoder(
NodeRemoteValue,
)
pub fn remote_value_decoder() -> decode.Decoder(RemoteValue)
pub fn to_bool(remote_value: RemoteValue) -> Bool
pub fn to_string(remote_value: RemoteValue) -> String
pub fn to_string_list(remote_value: RemoteValue) -> List(String)