canton-api-client 3.3.0-0.1.1

Canton Ledger API rust client
Documentation
/*
 * JSON Ledger API HTTP endpoints
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 3.3.0-SNAPSHOT
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// UpdateUserIdentityProviderIdRequest : Required authorization: ``HasRight(ParticipantAdmin)``
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateUserIdentityProviderIdRequest {
    /// User to update
    #[serde(rename = "userId")]
    pub user_id: String,
    /// Current identity provider ID of the user
    #[serde(rename = "sourceIdentityProviderId")]
    pub source_identity_provider_id: String,
    /// Target identity provider ID of the user
    #[serde(rename = "targetIdentityProviderId")]
    pub target_identity_provider_id: String,
}

impl UpdateUserIdentityProviderIdRequest {
    /// Required authorization: ``HasRight(ParticipantAdmin)``
    pub fn new(user_id: String, source_identity_provider_id: String, target_identity_provider_id: String) -> UpdateUserIdentityProviderIdRequest {
        UpdateUserIdentityProviderIdRequest {
            user_id,
            source_identity_provider_id,
            target_identity_provider_id,
        }
    }
}