pub struct SnsNeuronPermissionValue {
pub code: i32,
pub name: String,
}Expand description
SnsNeuronPermissionValue
Raw SNS Governance permission code with its current native label.
Fields§
§code: i32Raw integer permission code returned by Governance.
name: StringCurrent native permission label, or unknown for an unrecognized code.
Implementations§
Trait Implementations§
Source§impl Clone for SnsNeuronPermissionValue
impl Clone for SnsNeuronPermissionValue
Source§fn clone(&self) -> SnsNeuronPermissionValue
fn clone(&self) -> SnsNeuronPermissionValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnsNeuronPermissionValue
impl Debug for SnsNeuronPermissionValue
Source§impl<'de> Deserialize<'de> for SnsNeuronPermissionValue
impl<'de> Deserialize<'de> for SnsNeuronPermissionValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SnsNeuronPermissionValue
Source§impl PartialEq for SnsNeuronPermissionValue
impl PartialEq for SnsNeuronPermissionValue
Source§impl Serialize for SnsNeuronPermissionValue
impl Serialize for SnsNeuronPermissionValue
impl StructuralPartialEq for SnsNeuronPermissionValue
Auto Trait Implementations§
impl Freeze for SnsNeuronPermissionValue
impl RefUnwindSafe for SnsNeuronPermissionValue
impl Send for SnsNeuronPermissionValue
impl Sync for SnsNeuronPermissionValue
impl Unpin for SnsNeuronPermissionValue
impl UnsafeUnpin for SnsNeuronPermissionValue
impl UnwindSafe for SnsNeuronPermissionValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more