This is a Forward Contract — a customized contract between two parties (farmer and miller) to sell wheat at a price agreed today, with settlement at a future date.
The key features here are: customized agreement, two specific parties, future settlement, and price fixed today — all defining characteristics of a forward contract. It is not a futures contract because futures are standardized and exchange-traded, which is not the case here.