1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 00:45:18 +00:00

Can get the list of movies of current user

This commit is contained in:
2020-07-08 13:45:01 +02:00
parent df1e2ffd7b
commit 32628af376
5 changed files with 34 additions and 1 deletions

View File

@ -31,4 +31,8 @@ impl MovieAPI {
size: m.size,
}
}
pub fn for_list(l: &Vec<Movie>) -> Vec<MovieAPI> {
l.iter().map(Self::new).collect()
}
}