feature/github-email
claude/smbcloud-github-app-k9641p
development
feature/apps
feature/build-release
feature/ci-docs
feature/ci-ruby-gems
feature/cicd
feature/completion
feature/dist-nuget
feature/fix-ci-sdk-pypi-rubygem
feature/fix-clippy-on-stable-channel
feature/fix-deployment-script
feature/github-email
feature/gresiq-v1
feature/project-new-structure
feature/rsync-deploy
feature/ruby-runner
feature/sdk-npm
feature/sdk-workflows
feature/smbcloud-cli-release-npm
feature/smbcloud-deploy
feature/wasm
main
release/v0.7.4
| 1 | use std::fmt::{Display, Formatter}; |
| 2 | |
| 3 | use serde::{Deserialize, Serialize}; |
| 4 | |
| 5 | // SMBPNDK Users. |
| 6 | #[derive(Debug, Serialize, Deserialize)] |
| 7 | pub struct User { |
| 8 | pub(crate) id: i32, |
| 9 | pub(crate) email: String, |
| 10 | } |
| 11 | |
| 12 | impl Display for User { |
| 13 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { |
| 14 | write!(f, "User: id: {}, email: {}", self.id, self.email) |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | #[derive(Debug, Serialize, Deserialize)] |
| 19 | pub struct Status { |
| 20 | code: Option<i32>, |
| 21 | pub(crate) message: String, |
| 22 | } |
| 23 | |
| 24 | #[derive(Debug, Serialize, Deserialize)] |
| 25 | pub struct Data { |
| 26 | id: i32, |
| 27 | email: String, |
| 28 | created_at: String, |
| 29 | } |