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§
sourcefn type_added(&mut self, _archive: &TypeArchive, _id: &str, _definition: &Type)
fn type_added(&mut self, _archive: &TypeArchive, _id: &str, _definition: &Type)
Called when a type is added to the archive
archive- Source Type archiveid- Id of type addeddefinition- Definition of type
sourcefn type_updated(
&mut self,
_archive: &TypeArchive,
_id: &str,
_old_definition: &Type,
_new_definition: &Type,
)
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 archiveid- Id of typeold_definition- Previous definitionnew_definition- Current definition
sourcefn type_renamed(
&mut self,
_archive: &TypeArchive,
_id: &str,
_old_name: &QualifiedName,
_new_name: &QualifiedName,
)
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 archiveid- Type idold_name- Previous namenew_name- Current name
sourcefn type_deleted(
&mut self,
_archive: &TypeArchive,
_id: &str,
_definition: &Type,
)
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 archiveid- Id of type deleteddefinition- Definition of type deleted