pub fn is_writer_action(event: &Event) -> bool {
    if EntityId::from_usize(event.token().0).is_some() {
      let maybeWriterKind: EntityId = EntityId::from_usize(event.token().0).unwrap();
      if maybeWriterKind.get_kind() == EntityKind::WRITER_WITH_KEY_BUILT_IN
        || maybeWriterKind.get_kind() == EntityKind::WRITER_WITH_KEY_USER_DEFINED
        || maybeWriterKind.get_kind() == EntityKind::WRITER_NO_KEY_BUILT_IN
        || maybeWriterKind.get_kind() == EntityKind::WRITER_NO_KEY_USER_DEFINED
      {
        return true;
      }
    }
    event.token() == ADD_WRITER_TOKEN || event.token() == REMOVE_WRITER_TOKEN
  }
/// Writer action can be add writer remove writer or some not predefined token.
/// if not predefined token -> EntityIdToken can be calculated and if entityKind is 0xC2 then it is writer action.
Writer action can be add writer remove writer or some not predefined token.
if not predefined token -> EntityIdToken can be calculated and if entityKind is 0xC2 then it is writer action.
Writer action can be add writer remove writer or some not predefined token . if not predefined token - > EntityIdToken can be calculated and if entityKind is 0xC2 then it is writer action .
pub fn is_writer_action(event: &Event) -> bool {
    if EntityId::from_usize(event.token().0).is_some() {
      let maybeWriterKind: EntityId = EntityId::from_usize(event.token().0).unwrap();
      if maybeWriterKind.get_kind() == EntityKind::WRITER_WITH_KEY_BUILT_IN
        || maybeWriterKind.get_kind() == EntityKind::WRITER_WITH_KEY_USER_DEFINED
        || maybeWriterKind.get_kind() == EntityKind::WRITER_NO_KEY_BUILT_IN
        || maybeWriterKind.get_kind() == EntityKind::WRITER_NO_KEY_USER_DEFINED
      {
        return true;
      }
    }
    event.token() == ADD_WRITER_TOKEN || event.token() == REMOVE_WRITER_TOKEN
  }
pub fn is_writer_action ( event : & Event ) -> bool { if EntityId :: from_usize ( event . token ( ) . 0 ) . is_some ( ) { let maybeWriterKind : EntityId = EntityId :: from_usize ( event . token ( ) . 0 ) . unwrap ( ) ; if maybeWriterKind . get_kind ( ) == EntityKind :: WRITER_WITH_KEY_BUILT_IN || maybeWriterKind . get_kind ( ) == EntityKind :: WRITER_WITH_KEY_USER_DEFINED || maybeWriterKind . get_kind ( ) == EntityKind :: WRITER_NO_KEY_BUILT_IN || maybeWriterKind . get_kind ( ) == EntityKind :: WRITER_NO_KEY_USER_DEFINED { return true ; } } event . token ( ) == ADD_WRITER_TOKEN || event . token ( ) == REMOVE_WRITER_TOKEN }
Writer action can be add writer remove writer or some not predefined token.
Writer action can be add writer remove writer or some not predefined token .
event
&Event