ygleam/y_event

Types

pub type AnyYEvent {
  BaseEvent(event: YEvent, changes_keys: ChangesKeys)
  MapEvent(event: YMapEvent, changes_keys: ChangesKeys)
  ArrayEvent(event: YArrayEvent, changes_keys: ChangesKeys)
  TextEvent(event: YTextEvent, changes_keys: ChangesKeys)
  XmlEvent(event: YXmlEvent, changes_keys: ChangesKeys)
}

Constructors

  • BaseEvent(event: YEvent, changes_keys: ChangesKeys)
  • MapEvent(event: YMapEvent, changes_keys: ChangesKeys)
  • ArrayEvent(event: YArrayEvent, changes_keys: ChangesKeys)
  • TextEvent(event: YTextEvent, changes_keys: ChangesKeys)
  • XmlEvent(event: YXmlEvent, changes_keys: ChangesKeys)
pub type ChangeAction {
  AddAction(old_value: Option(YValue))
  UpdateAction(old_value: Option(YValue))
  DeleteAction(old_value: Option(YValue))
  UnknownAction(old_value: Option(YValue))
}

Constructors

  • AddAction(old_value: Option(YValue))
  • UpdateAction(old_value: Option(YValue))
  • DeleteAction(old_value: Option(YValue))
  • UnknownAction(old_value: Option(YValue))
pub type ChangesKeys =
  Dict(String, ChangeAction)
pub type PathSection {
  NumberSection(Int)
  StringSection(String)
}

Constructors

  • NumberSection(Int)
  • StringSection(String)
pub type YArrayEvent
pub type YEvent
pub type YMapEvent
pub type YTextEvent
pub type YXmlEvent

Functions

pub fn current_target(y_event: AnyYEvent) -> YType
pub fn map_keys_changed(y_map_event: YMapEvent) -> List(String)
pub fn path(y_event: AnyYEvent) -> List(PathSection)
pub fn target(y_event: AnyYEvent) -> YType
pub fn text_keys_changed(
  y_text_event: YTextEvent,
) -> List(String)
pub fn transaction(y_event: AnyYEvent) -> Transaction
pub fn xml_attributes_changed(
  y_xml_event: YXmlEvent,
) -> List(String)
Search Document