this is a config for validate function currently no user defined parameters are needed in future custom resolvers will be allowed to be passed in config.
validate function takes config(this can be imported as SpfConfig from crate), IpAddr(std::net::IpAddr), host as string and sender domain as string, if host is empty ip lookup can be performed if sender is empty this function will fail.