From d09893e9212be1f346f6fe8ca61d39ff6c8b8232 Mon Sep 17 00:00:00 2001 From: andrew <> Date: Sat, 6 Jan 2024 18:57:31 +0900 Subject: [PATCH] Add docstring --- google-apis-common/src/field_mask.rs | 2 ++ 1 file changed, 2 insertions(+) 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()); }