Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
maksymar committed Jul 30, 2024
1 parent 05fea6b commit fd00cd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rs/types/management_canister_types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -777,17 +777,16 @@ impl Payload<'_> for UninstallCodeArgs {}
/// ```text
/// variant {
/// controllers;
/// allowed_viewers: vec principal;
/// public;
/// }
/// ```
#[derive(Default, Clone, CandidType, Deserialize, Debug, PartialEq, Eq, EnumIter)]
pub enum LogVisibility {
#[default]
#[serde(rename = "controllers")]
Controllers,
#[serde(rename = "allowed_viewers")]
Public,
Controllers = 1,
#[serde(rename = "public")]
Public = 2,
}

// TODO(EXC-1670): remove after migration to `pb_canister_state_bits::LogVisibilityV2`.
Expand Down Expand Up @@ -841,6 +840,7 @@ impl From<pb_canister_state_bits::LogVisibilityV2> for LogVisibility {
pb::LogVisibilityEnum::Unspecified => Self::default(),
pb::LogVisibilityEnum::Controllers => Self::Controllers,
pb::LogVisibilityEnum::Public => Self::Public,
pb::LogVisibilityEnum::AllowedViewers => Self::default(),
},
}
}
Expand Down

0 comments on commit fd00cd2

Please sign in to comment.