pub struct TokenSecurityResponse {Show 13 fields
pub address: String,
pub chain: String,
pub dev_token_burn_amount: Option<String>,
pub dev_token_burn_ratio: Option<String>,
pub goplus: Option<GoPlusSecurityInfo>,
pub honeypot: Option<HoneypotIsSecurityInfo>,
pub is_freezable: Option<bool>,
pub is_mintable: Option<bool>,
pub is_show_alert: Option<bool>,
pub lock_info: Option<LockInfo>,
pub privileges: Vec<PrivilegeInfo>,
pub serialized: Option<SerializedSecurityInfo>,
pub sources_available: Vec<String>,
}Expand description
TokenSecurityResponse
JSON schema
{
"type": "object",
"required": [
"address",
"chain"
],
"properties": {
"address": {
"description": "ENTITY.TOKEN_SECURITY.ADDRESS",
"examples": [
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
],
"type": "string"
},
"chain": {
"description": "ENTITY.TOKEN_SECURITY.CHAIN",
"examples": [
"sol"
],
"type": "string"
},
"devTokenBurnAmount": {
"description": "ENTITY.TOKEN_SECURITY.DEV_TOKEN_BURN_AMOUNT",
"type": "string"
},
"devTokenBurnRatio": {
"description": "ENTITY.TOKEN_SECURITY.DEV_TOKEN_BURN_RATIO",
"type": "string"
},
"goplus": {
"$ref": "#/components/schemas/GoPlusSecurityInfo"
},
"honeypot": {
"$ref": "#/components/schemas/HoneypotIsSecurityInfo"
},
"isFreezable": {
"description": "ENTITY.TOKEN_SECURITY.IS_FREEZABLE",
"type": "boolean"
},
"isMintable": {
"description": "ENTITY.TOKEN_SECURITY.IS_MINTABLE",
"type": "boolean"
},
"isShowAlert": {
"description": "ENTITY.TOKEN_SECURITY.IS_SHOW_ALERT",
"type": "boolean"
},
"lockInfo": {
"$ref": "#/components/schemas/LockInfo"
},
"privileges": {
"description": "ENTITY.TOKEN_SECURITY.PRIVILEGES",
"type": "array",
"items": {
"$ref": "#/components/schemas/PrivilegeInfo"
}
},
"serialized": {
"$ref": "#/components/schemas/SerializedSecurityInfo"
},
"sourcesAvailable": {
"description": "ENTITY.TOKEN_SECURITY.SOURCES_AVAILABLE",
"examples": [
[
"goplus"
]
],
"type": "array",
"items": {
"type": "string"
}
}
}
}Fields§
§address: StringENTITY.TOKEN_SECURITY.ADDRESS
chain: StringENTITY.TOKEN_SECURITY.CHAIN
dev_token_burn_amount: Option<String>ENTITY.TOKEN_SECURITY.DEV_TOKEN_BURN_AMOUNT
dev_token_burn_ratio: Option<String>ENTITY.TOKEN_SECURITY.DEV_TOKEN_BURN_RATIO
goplus: Option<GoPlusSecurityInfo>§honeypot: Option<HoneypotIsSecurityInfo>§is_freezable: Option<bool>ENTITY.TOKEN_SECURITY.IS_FREEZABLE
is_mintable: Option<bool>ENTITY.TOKEN_SECURITY.IS_MINTABLE
is_show_alert: Option<bool>ENTITY.TOKEN_SECURITY.IS_SHOW_ALERT
lock_info: Option<LockInfo>§privileges: Vec<PrivilegeInfo>ENTITY.TOKEN_SECURITY.PRIVILEGES
serialized: Option<SerializedSecurityInfo>§sources_available: Vec<String>ENTITY.TOKEN_SECURITY.SOURCES_AVAILABLE
Implementations§
Source§impl TokenSecurityResponse
impl TokenSecurityResponse
pub fn builder() -> TokenSecurityResponse
Trait Implementations§
Source§impl Clone for TokenSecurityResponse
impl Clone for TokenSecurityResponse
Source§fn clone(&self) -> TokenSecurityResponse
fn clone(&self) -> TokenSecurityResponse
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 TokenSecurityResponse
impl Debug for TokenSecurityResponse
Source§impl<'de> Deserialize<'de> for TokenSecurityResponse
impl<'de> Deserialize<'de> for TokenSecurityResponse
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<&TokenSecurityResponse> for TokenSecurityResponse
impl From<&TokenSecurityResponse> for TokenSecurityResponse
Source§fn from(value: &TokenSecurityResponse) -> Self
fn from(value: &TokenSecurityResponse) -> Self
Converts to this type from the input type.
Source§impl From<TokenSecurityResponse> for TokenSecurityResponse
impl From<TokenSecurityResponse> for TokenSecurityResponse
Source§fn from(value: TokenSecurityResponse) -> Self
fn from(value: TokenSecurityResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for TokenSecurityResponse
impl Serialize for TokenSecurityResponse
Source§impl TryFrom<TokenSecurityResponse> for TokenSecurityResponse
impl TryFrom<TokenSecurityResponse> for TokenSecurityResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TokenSecurityResponse) -> Result<Self, ConversionError>
fn try_from(value: TokenSecurityResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TokenSecurityResponse
impl RefUnwindSafe for TokenSecurityResponse
impl Send for TokenSecurityResponse
impl Sync for TokenSecurityResponse
impl Unpin for TokenSecurityResponse
impl UnsafeUnpin for TokenSecurityResponse
impl UnwindSafe for TokenSecurityResponse
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