Error while attaching the script to Game Object in Unity DOTS

I’m getting the below error while attaching the script to game Object
“The script dont inherit the native class that can manage a script”

using Unity.Entities;
using Unity.Mathematics;
using UnityEngine;

public struct PlayerInputData : IComponentData
{
    public KeyCode upKey;
    public KeyCode downKey;
    public KeyCode rightKey;
    public KeyCode leftKey;
}

You forgot to generate authoring component of the script!

using Unity.Entities;
    using Unity.Mathematics;
    using UnityEngine;
    [GenerateAuthoringComponent]
    public struct PlayerInputData : IComponentData
    {
        public KeyCode upKey;
        public KeyCode downKey;
        public KeyCode rightKey;
        public KeyCode leftKey;
    }