Upgrade Rust SDK to spec 1.0.0

This commit is contained in:
Foorack
2021-10-28 19:13:06 +00:00
parent 4811cf2aa3
commit 664fb1ffd4
15 changed files with 77 additions and 5 deletions

View File

@ -1,4 +1,3 @@
.gitignore
.travis.yml .travis.yml
Cargo.toml Cargo.toml
docs/ApiConfig.md docs/ApiConfig.md

View File

@ -1,6 +1,6 @@
[package] [package]
name = "vrchatapi" name = "vrchatapi"
version = "1.4.2" version = "1.0.0"
authors = ["OpenAPI Generator team and contributors"] authors = ["OpenAPI Generator team and contributors"]
license = "MIT" license = "MIT"
edition = "2018" edition = "2018"

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
# #
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
git_user_id=$1 git_user_id=$1
git_repo_id=$2 git_repo_id=$2
@ -38,14 +38,14 @@ git add .
git commit -m "$release_note" git commit -m "$release_note"
# Sets the new remote # Sets the new remote
git_remote=$(git remote) git_remote=`git remote`
if [ "$git_remote" = "" ]; then # git remote not defined if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then if [ "$GIT_TOKEN" = "" ]; then
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
else else
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
fi fi
fi fi
@ -55,3 +55,4 @@ git pull origin master
# Pushes (Forces) the changes in the local repository up to the remote repository # Pushes (Forces) the changes in the local repository up to the remote repository
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
git push origin master 2>&1 | grep -v 'To https' git push origin master 2>&1 | grep -v 'To https'

View File

@ -33,6 +33,12 @@ impl ToString for DeploymentGroup {
} }
} }
impl Default for DeploymentGroup {
fn default() -> DeploymentGroup {
Self::Blue
}
}

View File

@ -33,6 +33,12 @@ impl ToString for DeveloperType {
} }
} }
impl Default for DeveloperType {
fn default() -> DeveloperType {
Self::None
}
}

View File

@ -29,6 +29,12 @@ impl ToString for FavoriteGroupVisibility {
} }
} }
impl Default for FavoriteGroupVisibility {
fn default() -> FavoriteGroupVisibility {
Self::Private
}
}

View File

@ -29,6 +29,12 @@ impl ToString for FavoriteType {
} }
} }
impl Default for FavoriteType {
fn default() -> FavoriteType {
Self::World
}
}

View File

@ -29,6 +29,12 @@ impl ToString for FileStatus {
} }
} }
impl Default for FileStatus {
fn default() -> FileStatus {
Self::Waiting
}
}

View File

@ -23,6 +23,12 @@ impl ToString for InviteMessageType {
} }
} }
impl Default for InviteMessageType {
fn default() -> InviteMessageType {
Self::Message
}
}

View File

@ -62,6 +62,12 @@ impl ToString for MimeType {
} }
} }
impl Default for MimeType {
fn default() -> MimeType {
Self::ImageJpeg
}
}

View File

@ -38,6 +38,12 @@ impl ToString for NotificationType {
} }
} }
impl Default for NotificationType {
fn default() -> NotificationType {
Self::FriendRequest
}
}

View File

@ -38,6 +38,12 @@ impl ToString for PlayerModerationType {
} }
} }
impl Default for PlayerModerationType {
fn default() -> PlayerModerationType {
Self::Mute
}
}

View File

@ -29,6 +29,12 @@ impl ToString for ReleaseStatus {
} }
} }
impl Default for ReleaseStatus {
fn default() -> ReleaseStatus {
Self::Public
}
}

View File

@ -30,6 +30,12 @@ impl ToString for UserState {
} }
} }
impl Default for UserState {
fn default() -> UserState {
Self::Offline
}
}

View File

@ -36,6 +36,12 @@ impl ToString for UserStatus {
} }
} }
impl Default for UserStatus {
fn default() -> UserStatus {
Self::Active
}
}