From 6e776c5e7bc2a71115f2919bcdb781849310383c Mon Sep 17 00:00:00 2001 From: CurriedOtter <119283834+CurriedOtter@users.noreply.github.com> Date: Tue, 17 Jan 2023 10:24:35 +0800 Subject: [PATCH] make constraint group fields public (#2360) --- lang/syn/src/lib.rs | 48 ++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/lang/syn/src/lib.rs b/lang/syn/src/lib.rs index 13a9935c4..d1ca157b7 100644 --- a/lang/syn/src/lib.rs +++ b/lang/syn/src/lib.rs @@ -618,23 +618,23 @@ pub struct ErrorCode { // All well formed constraints on a single `Accounts` field. #[derive(Debug, Default, Clone)] pub struct ConstraintGroup { - init: Option, - zeroed: Option, - mutable: Option, - signer: Option, - owner: Option, - rent_exempt: Option, - seeds: Option, - executable: Option, - has_one: Vec, - literal: Vec, - raw: Vec, - close: Option, - address: Option, - associated_token: Option, - token_account: Option, - mint: Option, - realloc: Option, + pub init: Option, + pub zeroed: Option, + pub mutable: Option, + pub signer: Option, + pub owner: Option, + pub rent_exempt: Option, + pub seeds: Option, + pub executable: Option, + pub has_one: Vec, + pub literal: Vec, + pub raw: Vec, + pub close: Option, + pub address: Option, + pub associated_token: Option, + pub token_account: Option, + pub mint: Option, + pub realloc: Option, } impl ConstraintGroup { @@ -862,37 +862,37 @@ pub struct ConstraintClose { #[derive(Debug, Clone)] pub struct ConstraintTokenMint { - mint: Expr, + pub mint: Expr, } #[derive(Debug, Clone)] pub struct ConstraintTokenAuthority { - auth: Expr, + pub auth: Expr, } #[derive(Debug, Clone)] pub struct ConstraintMintAuthority { - mint_auth: Expr, + pub mint_auth: Expr, } #[derive(Debug, Clone)] pub struct ConstraintMintFreezeAuthority { - mint_freeze_auth: Expr, + pub mint_freeze_auth: Expr, } #[derive(Debug, Clone)] pub struct ConstraintMintDecimals { - decimals: Expr, + pub decimals: Expr, } #[derive(Debug, Clone)] pub struct ConstraintTokenBump { - bump: Option, + pub bump: Option, } #[derive(Debug, Clone)] pub struct ConstraintProgramSeed { - program_seed: Expr, + pub program_seed: Expr, } #[derive(Debug, Clone)]