canic-cdk 0.22.0

Canic — a canister orchestration and management toolkit for the Internet Computer
Documentation
//!
//! Handy wrappers for selected NNS candid types with consistent naming.
//!

use crate::spec::prelude::*;

///
/// GetSubnetForCanisterRequest
///

#[derive(CandidType, Debug, Deserialize)]
pub struct GetSubnetForCanisterRequest {
    pub principal: Principal,
}

///
/// GetSubnetForCanisterResponse
/// Minimal NNS response describing the assigned subnet for a canister.
///

pub type GetSubnetForCanisterResponse = Result<GetSubnetForCanisterPayload, String>;

///
/// GetSubnetForCanisterPayload
///

#[derive(CandidType, Debug, Deserialize)]
pub struct GetSubnetForCanisterPayload {
    pub subnet_id: Option<Principal>,
}