Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nicholas Bailey
rust-gitlab
Commits
42a4c705
Commit
42a4c705
authored
May 27, 2020
by
Ben Boeckel
⛰
Browse files
api/projects: support plain strings for the some query fields
parent
d8728b55
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
42a4c705
...
...
@@ -19,6 +19,9 @@ been added.
*
The
`api::projects::environments::Environment`
endpoint uses the correct
path now.
*
The
`api::projects::members::ProjectMembers`
and
`api::projects::repository::Branches`
endpoints now accepts plain strings
for their
`query`
fields.
## Changes
...
...
src/api/projects/members/members.rs
View file @
42a4c705
...
...
@@ -13,6 +13,7 @@ use crate::api::endpoint_prelude::*;
/// Query a members of a project.
#[derive(Debug,
Builder)]
#[builder(setter(strip_option))]
pub
struct
ProjectMembers
<
'a
>
{
/// The project to query for membership.
#[builder(setter(into))]
...
...
src/api/projects/repository/branches/branches.rs
View file @
42a4c705
...
...
@@ -11,6 +11,7 @@ use crate::api::endpoint_prelude::*;
/// Query for a specific branch in a project.
#[derive(Debug,
Builder)]
#[builder(setter(strip_option))]
pub
struct
Branches
<
'a
>
{
/// The project to get a branch from.
#[builder(setter(into))]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment