Trait ValidateRepository

Source
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§

Source

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§

Implementors§