Skip to main content

apollo_configuration/types/
option.rs

1//! Validate implementation for `Option<T>`.
2
3use crate::ErrorCollector;
4use crate::Validate;
5
6impl<T: Validate> Validate for Option<T> {
7    fn validate(&self, errors: ErrorCollector<'_>) {
8        if let Some(inner) = self {
9            inner.validate(errors);
10        }
11    }
12}