pub trait ValidateRepository: RemoteRepository {
// Required method
fn validate_remote(&self, remote: &Remote) -> Result<Validations, Error>;
// Provided method
fn validate(&self) -> Result<Validations, Error> { ... }
}
Required Methods§
Sourcefn validate_remote(&self, remote: &Remote) -> Result<Validations, Error>
fn validate_remote(&self, remote: &Remote) -> Result<Validations, Error>
Validates a remote’s signed refs and identity.
Returns any ref found under that remote that isn’t signed. If a signed ref is missing from the repository, an error is returned.
Provided Methods§
Sourcefn validate(&self) -> Result<Validations, Error>
fn validate(&self) -> Result<Validations, Error>
Validate all remotes with ValidateRepository::validate_remote
.