func (rc *RunCmdOptions) SetReadPreference(rp *readpref.ReadPref) *RunCmdOptions {
	rc.ReadPreference = rp
	return rc
}
SetReadPreference sets value for the ReadPreference field.
package options
import "go.mongodb.org/mongo-driver/mongo/readpref"
type RunCmdOptions struct {
	ReadPreference *readpref.ReadPref
}
func RunCmd() *RunCmdOptions {
	return &RunCmdOptions{}
}