implemented struct inheritance for RPC type definition