Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jocelyn Falempe
rust-gitlab
Commits
d41cb19e
Commit
d41cb19e
authored
Jan 13, 2017
by
Ben Boeckel
Browse files
types: update for 8.15
parent
64459cbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/types.rs.in
View file @
d41cb19e
...
...
@@ -841,6 +841,10 @@ pub struct RepoCommit {
pub author_name: String,
/// The commit author's email address.
pub author_email: String,
/// The committer's name.
pub committer_name: String,
/// The committer's email address.
pub committer_email: String,
pub created_at: DateTime<UTC>,
/// The full commit message.
pub message: String,
...
...
@@ -909,6 +913,19 @@ pub struct ProjectSnippet {
pub web_url: String,
}
//class PersonalSnippet < Grape::Entity
// expose :id, :title, :file_name
// expose :author, using: Entities::UserBasic
// expose :updated_at, :created_at
//
// expose :web_url do |snippet|
// Gitlab::UrlBuilder.build(snippet)
// end
// expose :raw_url do |snippet|
// Gitlab::UrlBuilder.build(snippet) + "/raw"
// end
//end
// This is just used as a common "base class" in Ruby.
//#[derive(Serialize, Deserialize, Debug, Clone)]
//pub struct ProjectEntity {
...
...
@@ -1942,7 +1959,7 @@ pub struct Build {
//end
//class EnvironmentBasic < Grape::Entity
// expose :id, :name, :external_url
// expose :id, :name,
:slug,
:external_url
//end
//class Environment < EnvironmentBasic
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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