Untreated oak, it will weather nicely and not require painting and if it gets dirty a good scrub will clean it up.
I have some cast ends like yours and will be using oak for new slats.
Oh and use stainless fittings so as not to stain the oak and also the tannin’s in the oak will eat through plain steel bolts in no time.
Cedar and Teak could also be used.
Cedar will weather nice as well and is resistant to attack from wood boring insects and doesn’t require any wood treatments.
Teak will need oiled every now and then, but will last well.
We have about 25 teak Benches at work dating back to the mid fifties and as they have been treated with woodstain in the past they now need painting very year 😥 a horrible job.