/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GithubInstallationsOut {
/// InstallURL is where to grant a new account, so a UI with an empty list has somewhere to send the reader instead of a dead end.
#[serde(rename = "installUrl", skip_serializing_if = "Option::is_none")]
pub install_url: Option<String>,
/// Installations is every account the caller may see: the ones its own org has bound, or — for a super admin — every account the App is installed on. Never null; [] when none.
#[serde(rename = "installations", skip_serializing_if = "Option::is_none")]
pub installations: Option<Vec<models::GithubInstallationView>>,
}
impl GithubInstallationsOut {
pub fn new() -> GithubInstallationsOut {
GithubInstallationsOut {
install_url: None,
installations: None,
}
}
}