It's just a collector's Item.
The only function they have is if you get 100 of them of one of the two types(pickled or normal) you get an achievement.
These two achievements are:
Cucumber collector for collecting 100 normal cucumbers
And
Cucumber killer for collecting 100 pickled cucumbers