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
c103490a
Commit
c103490a
authored
May 27, 2020
by
Ben Boeckel
⛰
Browse files
api/projects: use Into for `import_url`
parent
b9df4173
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
c103490a
...
...
@@ -27,6 +27,8 @@ been added.
*
The
`api::projects::repository::CreateFile`
endpoint now properly upgrades
the encoding when attempting to encode binary contents using
`Encoding::Text`
.
*
The
`api::projects::CreateProject`
and
`api::projects::EditProject`
endpoints now accepts plain strings in its
`import_url`
field.
## Changes
...
...
src/api/projects/create.rs
View file @
c103490a
...
...
@@ -458,7 +458,7 @@ pub struct CreateProject<'a> {
#[builder(default)]
visibility
:
Option
<
VisibilityLevel
>
,
/// A URL to import the repository from.
#[builder(default)]
#[builder(
setter(into),
default)]
import_url
:
Option
<
Cow
<
'a
,
str
>>
,
/// Whether job results are visible to non-project members or not.
#[builder(default)]
...
...
src/api/projects/edit.rs
View file @
c103490a
...
...
@@ -82,7 +82,7 @@ pub struct EditProject<'a> {
#[builder(default)]
visibility
:
Option
<
VisibilityLevel
>
,
/// A URL to import the repository from.
#[builder(default)]
#[builder(
setter(into),
default)]
import_url
:
Option
<
Cow
<
'a
,
str
>>
,
/// Whether job results are visible to non-project members or not.
#[builder(default)]
...
...
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