diff --git a/google-apis-common/src/field_mask.rs b/google-apis-common/src/field_mask.rs index 3bd63b6956..3d8220a921 100644 --- a/google-apis-common/src/field_mask.rs +++ b/google-apis-common/src/field_mask.rs @@ -35,6 +35,8 @@ fn snakecase(source: &str) -> String { pub struct FieldMask(Vec); impl FieldMask { + /// Create a new `FieldMask` from a list of paths. These are converted to snake + /// case if they aren't already. pub fn new>(values: &[S]) -> Self { return Self(values.iter().map(|s| snakecase(s.as_ref())).collect()); }