pub struct AvatarInfo {Show 17 fields
pub block_number: u64,
pub timestamp: Option<u64>,
pub transaction_index: u32,
pub log_index: u32,
pub transaction_hash: TxHash,
pub version: u32,
pub avatar_type: AvatarType,
pub avatar: Address,
pub token_id: Option<U256>,
pub has_v1: bool,
pub v1_token: Option<Address>,
pub cid_v0_digest: Option<String>,
pub cid_v0: Option<String>,
pub v1_stopped: Option<bool>,
pub is_human: bool,
pub name: Option<String>,
pub symbol: Option<String>,
}Expand description
Avatar information Contains basic information about a Circles avatar.
Fields§
§block_number: u64The block number of the event
timestamp: Option<u64>The timestamp of the last change to the avatar Note: May be undefined for some avatars
transaction_index: u32The transaction index
log_index: u32The log index
transaction_hash: TxHashThe hash of the transaction that last changed the avatar
version: u32If the avatar is currently active in version 1 or 2
Note: An avatar that’s active in v2 can still have a v1 token. See has_v1 and v1_token.
avatar_type: AvatarTypeThe type of the avatar
avatar: AddressThe address of the avatar
token_id: Option<U256>The personal or group token address (v1) or tokenId (v2) Note: v1 tokens are erc20 and have a token address. v2 tokens are erc1155 and have a tokenId. The v2 tokenId is always an encoded version of the avatar address.
has_v1: boolIf the avatar is signed up at v1
v1_token: Option<Address>If the avatar has a v1 token, this is the token address
cid_v0_digest: Option<String>The bytes of the avatar’s metadata cidv0
cid_v0: Option<String>The CIDv0 of the avatar’s metadata (profile)
v1_stopped: Option<bool>If the avatar is stopped in v1 Note: This is only set during Avatar initialization.
is_human: boolIndicates whether the entity is a human
name: Option<String>Groups have a name
symbol: Option<String>Groups have a symbol
Trait Implementations§
Source§impl Clone for AvatarInfo
impl Clone for AvatarInfo
Source§fn clone(&self) -> AvatarInfo
fn clone(&self) -> AvatarInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AvatarInfo
impl Debug for AvatarInfo
Source§impl<'de> Deserialize<'de> for AvatarInfo
impl<'de> Deserialize<'de> for AvatarInfo
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>,
Auto Trait Implementations§
impl Freeze for AvatarInfo
impl RefUnwindSafe for AvatarInfo
impl Send for AvatarInfo
impl Sync for AvatarInfo
impl Unpin for AvatarInfo
impl UnwindSafe for AvatarInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more