pub struct TokenSecurityResponse {
pub address: String,
pub chain: String,
pub goplus: Option<GoPlusSecurityInfo>,
pub honeypot: Option<HoneypotIsSecurityInfo>,
pub serialized: Option<SerializedSecurityInfo>,
pub sources_available: Vec<String>,
}Expand description
TokenSecurityResponse
JSON schema
{
"type": "object",
"required": [
"address",
"chain"
],
"properties": {
"address": {
"description": "Token contract address",
"examples": [
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
],
"type": "string"
},
"chain": {
"description": "Chain name",
"examples": [
"sol"
],
"type": "string"
},
"goplus": {
"$ref": "#/components/schemas/GoPlusSecurityInfo"
},
"honeypot": {
"$ref": "#/components/schemas/HoneypotIsSecurityInfo"
},
"serialized": {
"$ref": "#/components/schemas/SerializedSecurityInfo"
},
"sourcesAvailable": {
"description": "ENTITY.TOKEN_SECURITY.SOURCES_AVAILABLE",
"examples": [
[
"goplus"
]
],
"type": "array",
"items": {
"type": "string"
}
}
}
}Fields§
§address: StringToken contract address
chain: StringChain name
goplus: Option<GoPlusSecurityInfo>§honeypot: Option<HoneypotIsSecurityInfo>§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