pub struct PrivilegeInfo {
pub address: Option<String>,
pub is_renounced: Option<bool>,
pub name: Option<String>,
}Expand description
Privilege information for a token (mint, freeze, update authorities).
JSON schema
{
"description": "Privilege information for a token (mint, freeze, update authorities).",
"type": "object",
"properties": {
"address": {
"type": "string"
},
"isRenounced": {
"type": "boolean"
},
"name": {
"type": "string"
}
}
}Fields§
§address: Option<String>§is_renounced: Option<bool>§name: Option<String>Implementations§
Source§impl PrivilegeInfo
impl PrivilegeInfo
pub fn builder() -> PrivilegeInfo
Trait Implementations§
Source§impl Clone for PrivilegeInfo
impl Clone for PrivilegeInfo
Source§fn clone(&self) -> PrivilegeInfo
fn clone(&self) -> PrivilegeInfo
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 PrivilegeInfo
impl Debug for PrivilegeInfo
Source§impl Default for PrivilegeInfo
impl Default for PrivilegeInfo
Source§impl<'de> Deserialize<'de> for PrivilegeInfo
impl<'de> Deserialize<'de> for PrivilegeInfo
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
Source§impl From<&PrivilegeInfo> for PrivilegeInfo
impl From<&PrivilegeInfo> for PrivilegeInfo
Source§fn from(value: &PrivilegeInfo) -> Self
fn from(value: &PrivilegeInfo) -> Self
Converts to this type from the input type.
Source§impl From<PrivilegeInfo> for PrivilegeInfo
impl From<PrivilegeInfo> for PrivilegeInfo
Source§fn from(value: PrivilegeInfo) -> Self
fn from(value: PrivilegeInfo) -> Self
Converts to this type from the input type.
Source§impl Serialize for PrivilegeInfo
impl Serialize for PrivilegeInfo
Source§impl TryFrom<PrivilegeInfo> for PrivilegeInfo
impl TryFrom<PrivilegeInfo> for PrivilegeInfo
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PrivilegeInfo) -> Result<Self, ConversionError>
fn try_from(value: PrivilegeInfo) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PrivilegeInfo
impl RefUnwindSafe for PrivilegeInfo
impl Send for PrivilegeInfo
impl Sync for PrivilegeInfo
impl Unpin for PrivilegeInfo
impl UnsafeUnpin for PrivilegeInfo
impl UnwindSafe for PrivilegeInfo
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