pub trait TypeArchiveNotificationCallback {
    // Provided methods
    fn type_added(
        &mut self,
        _archive: &TypeArchive,
        _id: &str,
        _definition: &Type
    ) { ... }
    fn type_updated(
        &mut self,
        _archive: &TypeArchive,
        _id: &str,
        _old_definition: &Type,
        _new_definition: &Type
    ) { ... }
    fn type_renamed(
        &mut self,
        _archive: &TypeArchive,
        _id: &str,
        _old_name: &QualifiedName,
        _new_name: &QualifiedName
    ) { ... }
    fn type_deleted(
        &mut self,
        _archive: &TypeArchive,
        _id: &str,
        _definition: &Type
    ) { ... }
}

Provided Methods§

source

fn type_added(&mut self, _archive: &TypeArchive, _id: &str, _definition: &Type)

Called when a type is added to the archive

  • archive - Source Type archive
  • id - Id of type added
  • definition - Definition of type
source

fn type_updated( &mut self, _archive: &TypeArchive, _id: &str, _old_definition: &Type, _new_definition: &Type )

Called when a type in the archive is updated to a new definition

  • archive - Source Type archive
  • id - Id of type
  • old_definition - Previous definition
  • new_definition - Current definition
source

fn type_renamed( &mut self, _archive: &TypeArchive, _id: &str, _old_name: &QualifiedName, _new_name: &QualifiedName )

Called when a type in the archive is renamed

  • archive - Source Type archive
  • id - Type id
  • old_name - Previous name
  • new_name - Current name
source

fn type_deleted( &mut self, _archive: &TypeArchive, _id: &str, _definition: &Type )

Called when a type in the archive is deleted from the archive

  • archive - Source Type archive
  • id - Id of type deleted
  • definition - Definition of type deleted

Implementors§