radroots_identity.txt (33885B)
1 pub mod radroots_identity 2 pub mod radroots_identity::account 3 #[non_exhaustive] pub enum radroots_identity::account::Status 4 pub radroots_identity::account::Status::NotConfigured 5 pub radroots_identity::account::Status::PublicOnly 6 pub radroots_identity::account::Status::PublicOnly::account: radroots_identity::account::Record 7 pub radroots_identity::account::Status::Ready 8 pub radroots_identity::account::Status::Ready::account: radroots_identity::account::Record 9 impl radroots_identity::account::Status 10 pub const fn radroots_identity::account::Status::account(&self) -> core::option::Option<&radroots_identity::account::Record> 11 pub const fn radroots_identity::account::Status::is_ready(&self) -> bool 12 #[repr(transparent)] pub struct radroots_identity::account::AccountId(_) 13 impl radroots_identity::account::AccountId 14 pub const radroots_identity::account::AccountId::BYTE_LENGTH: usize 15 pub const radroots_identity::account::AccountId::HEX_LENGTH: usize 16 pub const fn radroots_identity::account::AccountId::as_bytes(&self) -> &[u8; 32] 17 pub fn radroots_identity::account::AccountId::from_bytes([u8; 32]) -> core::result::Result<Self, radroots_identity::Error> 18 pub fn radroots_identity::account::AccountId::from_hex(&str) -> core::result::Result<Self, radroots_identity::Error> 19 pub fn radroots_identity::account::AccountId::from_slice(&[u8]) -> core::result::Result<Self, radroots_identity::Error> 20 pub const fn radroots_identity::account::AccountId::into_bytes(self) -> [u8; 32] 21 pub fn radroots_identity::account::AccountId::to_hex(self) -> alloc::string::String 22 impl radroots_identity::account::AccountId 23 pub const fn radroots_identity::account::AccountId::from_identity_id(radroots_identity::key::IdentityId) -> Self 24 pub const fn radroots_identity::account::AccountId::from_public_identity(&radroots_identity::profile::PublicIdentity) -> Self 25 impl core::convert::AsRef<[u8]> for radroots_identity::account::AccountId 26 pub fn radroots_identity::account::AccountId::as_ref(&self) -> &[u8] 27 impl core::convert::From<&radroots_identity::profile::PublicIdentity> for radroots_identity::account::AccountId 28 pub fn radroots_identity::account::AccountId::from(&radroots_identity::profile::PublicIdentity) -> Self 29 impl core::convert::From<radroots_identity::key::IdentityId> for radroots_identity::account::AccountId 30 pub fn radroots_identity::account::AccountId::from(radroots_identity::key::IdentityId) -> Self 31 impl core::convert::TryFrom<&[u8]> for radroots_identity::account::AccountId 32 pub type radroots_identity::account::AccountId::Error = radroots_identity::Error 33 pub fn radroots_identity::account::AccountId::try_from(&[u8]) -> core::result::Result<Self, Self::Error> 34 impl core::convert::TryFrom<&str> for radroots_identity::account::AccountId 35 pub type radroots_identity::account::AccountId::Error = radroots_identity::Error 36 pub fn radroots_identity::account::AccountId::try_from(&str) -> core::result::Result<Self, Self::Error> 37 impl core::convert::TryFrom<[u8; 32]> for radroots_identity::account::AccountId 38 pub type radroots_identity::account::AccountId::Error = radroots_identity::Error 39 pub fn radroots_identity::account::AccountId::try_from([u8; 32]) -> core::result::Result<Self, Self::Error> 40 impl core::convert::TryFrom<alloc::string::String> for radroots_identity::account::AccountId 41 pub type radroots_identity::account::AccountId::Error = radroots_identity::Error 42 pub fn radroots_identity::account::AccountId::try_from(alloc::string::String) -> core::result::Result<Self, Self::Error> 43 impl core::fmt::Debug for radroots_identity::account::AccountId 44 pub fn radroots_identity::account::AccountId::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 45 impl core::fmt::Display for radroots_identity::account::AccountId 46 pub fn radroots_identity::account::AccountId::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 47 impl core::str::traits::FromStr for radroots_identity::account::AccountId 48 pub type radroots_identity::account::AccountId::Err = radroots_identity::Error 49 pub fn radroots_identity::account::AccountId::from_str(&str) -> core::result::Result<Self, Self::Err> 50 impl serde_core::ser::Serialize for radroots_identity::account::AccountId 51 pub fn radroots_identity::account::AccountId::serialize<S>(&self, S) -> core::result::Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: serde_core::ser::Serializer 52 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::account::AccountId 53 pub fn radroots_identity::account::AccountId::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de> 54 pub struct radroots_identity::account::Record 55 impl radroots_identity::account::Record 56 pub const fn radroots_identity::account::Record::created_at_unix(&self) -> u64 57 pub const fn radroots_identity::account::Record::id(&self) -> radroots_identity::account::AccountId 58 pub fn radroots_identity::account::Record::label(&self) -> core::option::Option<&str> 59 pub fn radroots_identity::account::Record::new(radroots_identity::profile::PublicIdentity, core::option::Option<alloc::string::String>, u64) -> Self 60 pub const fn radroots_identity::account::Record::public_identity(&self) -> &radroots_identity::profile::PublicIdentity 61 pub fn radroots_identity::account::Record::set_label(&mut self, core::option::Option<alloc::string::String>) 62 pub fn radroots_identity::account::Record::touch_updated(&mut self, u64) -> core::result::Result<(), radroots_identity::Error> 63 pub fn radroots_identity::account::Record::try_from_parts(radroots_identity::account::AccountId, radroots_identity::profile::PublicIdentity, core::option::Option<alloc::string::String>, u64, u64) -> core::result::Result<Self, radroots_identity::Error> 64 pub const fn radroots_identity::account::Record::updated_at_unix(&self) -> u64 65 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::account::Record 66 pub fn radroots_identity::account::Record::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de> 67 pub mod radroots_identity::key 68 #[repr(transparent)] pub struct radroots_identity::key::IdentityId(_) 69 impl radroots_identity::key::IdentityId 70 pub const radroots_identity::key::IdentityId::BYTE_LENGTH: usize 71 pub const radroots_identity::key::IdentityId::HEX_LENGTH: usize 72 pub const fn radroots_identity::key::IdentityId::as_bytes(&self) -> &[u8; 32] 73 pub fn radroots_identity::key::IdentityId::from_bytes([u8; 32]) -> core::result::Result<Self, radroots_identity::Error> 74 pub fn radroots_identity::key::IdentityId::from_hex(&str) -> core::result::Result<Self, radroots_identity::Error> 75 pub fn radroots_identity::key::IdentityId::from_slice(&[u8]) -> core::result::Result<Self, radroots_identity::Error> 76 pub const fn radroots_identity::key::IdentityId::into_bytes(self) -> [u8; 32] 77 pub fn radroots_identity::key::IdentityId::to_hex(self) -> alloc::string::String 78 impl radroots_identity::key::IdentityId 79 pub const fn radroots_identity::key::IdentityId::from_public_key(radroots_identity::key::PublicKey) -> Self 80 impl core::convert::AsRef<[u8]> for radroots_identity::key::IdentityId 81 pub fn radroots_identity::key::IdentityId::as_ref(&self) -> &[u8] 82 impl core::convert::From<radroots_identity::key::IdentityId> for radroots_identity::account::AccountId 83 pub fn radroots_identity::account::AccountId::from(radroots_identity::key::IdentityId) -> Self 84 impl core::convert::From<radroots_identity::key::PublicKey> for radroots_identity::key::IdentityId 85 pub fn radroots_identity::key::IdentityId::from(radroots_identity::key::PublicKey) -> Self 86 impl core::convert::TryFrom<&[u8]> for radroots_identity::key::IdentityId 87 pub type radroots_identity::key::IdentityId::Error = radroots_identity::Error 88 pub fn radroots_identity::key::IdentityId::try_from(&[u8]) -> core::result::Result<Self, Self::Error> 89 impl core::convert::TryFrom<&str> for radroots_identity::key::IdentityId 90 pub type radroots_identity::key::IdentityId::Error = radroots_identity::Error 91 pub fn radroots_identity::key::IdentityId::try_from(&str) -> core::result::Result<Self, Self::Error> 92 impl core::convert::TryFrom<[u8; 32]> for radroots_identity::key::IdentityId 93 pub type radroots_identity::key::IdentityId::Error = radroots_identity::Error 94 pub fn radroots_identity::key::IdentityId::try_from([u8; 32]) -> core::result::Result<Self, Self::Error> 95 impl core::convert::TryFrom<alloc::string::String> for radroots_identity::key::IdentityId 96 pub type radroots_identity::key::IdentityId::Error = radroots_identity::Error 97 pub fn radroots_identity::key::IdentityId::try_from(alloc::string::String) -> core::result::Result<Self, Self::Error> 98 impl core::fmt::Debug for radroots_identity::key::IdentityId 99 pub fn radroots_identity::key::IdentityId::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 100 impl core::fmt::Display for radroots_identity::key::IdentityId 101 pub fn radroots_identity::key::IdentityId::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 102 impl core::str::traits::FromStr for radroots_identity::key::IdentityId 103 pub type radroots_identity::key::IdentityId::Err = radroots_identity::Error 104 pub fn radroots_identity::key::IdentityId::from_str(&str) -> core::result::Result<Self, Self::Err> 105 impl serde_core::ser::Serialize for radroots_identity::key::IdentityId 106 pub fn radroots_identity::key::IdentityId::serialize<S>(&self, S) -> core::result::Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: serde_core::ser::Serializer 107 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::key::IdentityId 108 pub fn radroots_identity::key::IdentityId::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de> 109 #[repr(transparent)] pub struct radroots_identity::key::PublicKey(_) 110 impl radroots_identity::key::PublicKey 111 pub const radroots_identity::key::PublicKey::BYTE_LENGTH: usize 112 pub const radroots_identity::key::PublicKey::HEX_LENGTH: usize 113 pub const fn radroots_identity::key::PublicKey::as_bytes(&self) -> &[u8; 32] 114 pub fn radroots_identity::key::PublicKey::from_bytes([u8; 32]) -> core::result::Result<Self, radroots_identity::Error> 115 pub fn radroots_identity::key::PublicKey::from_hex(&str) -> core::result::Result<Self, radroots_identity::Error> 116 pub fn radroots_identity::key::PublicKey::from_slice(&[u8]) -> core::result::Result<Self, radroots_identity::Error> 117 pub const fn radroots_identity::key::PublicKey::into_bytes(self) -> [u8; 32] 118 pub fn radroots_identity::key::PublicKey::to_hex(self) -> alloc::string::String 119 impl core::convert::AsRef<[u8]> for radroots_identity::key::PublicKey 120 pub fn radroots_identity::key::PublicKey::as_ref(&self) -> &[u8] 121 impl core::convert::From<radroots_identity::key::PublicKey> for radroots_identity::key::IdentityId 122 pub fn radroots_identity::key::IdentityId::from(radroots_identity::key::PublicKey) -> Self 123 impl core::convert::TryFrom<&[u8]> for radroots_identity::key::PublicKey 124 pub type radroots_identity::key::PublicKey::Error = radroots_identity::Error 125 pub fn radroots_identity::key::PublicKey::try_from(&[u8]) -> core::result::Result<Self, Self::Error> 126 impl core::convert::TryFrom<&str> for radroots_identity::key::PublicKey 127 pub type radroots_identity::key::PublicKey::Error = radroots_identity::Error 128 pub fn radroots_identity::key::PublicKey::try_from(&str) -> core::result::Result<Self, Self::Error> 129 impl core::convert::TryFrom<[u8; 32]> for radroots_identity::key::PublicKey 130 pub type radroots_identity::key::PublicKey::Error = radroots_identity::Error 131 pub fn radroots_identity::key::PublicKey::try_from([u8; 32]) -> core::result::Result<Self, Self::Error> 132 impl core::convert::TryFrom<alloc::string::String> for radroots_identity::key::PublicKey 133 pub type radroots_identity::key::PublicKey::Error = radroots_identity::Error 134 pub fn radroots_identity::key::PublicKey::try_from(alloc::string::String) -> core::result::Result<Self, Self::Error> 135 impl core::fmt::Debug for radroots_identity::key::PublicKey 136 pub fn radroots_identity::key::PublicKey::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 137 impl core::fmt::Display for radroots_identity::key::PublicKey 138 pub fn radroots_identity::key::PublicKey::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 139 impl core::str::traits::FromStr for radroots_identity::key::PublicKey 140 pub type radroots_identity::key::PublicKey::Err = radroots_identity::Error 141 pub fn radroots_identity::key::PublicKey::from_str(&str) -> core::result::Result<Self, Self::Err> 142 impl serde_core::ser::Serialize for radroots_identity::key::PublicKey 143 pub fn radroots_identity::key::PublicKey::serialize<S>(&self, S) -> core::result::Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: serde_core::ser::Serializer 144 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::key::PublicKey 145 pub fn radroots_identity::key::PublicKey::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de> 146 pub mod radroots_identity::profile 147 pub struct radroots_identity::profile::Profile 148 impl radroots_identity::profile::Profile 149 pub const fn radroots_identity::profile::Profile::is_empty(&self) -> bool 150 pub const fn radroots_identity::profile::Profile::new() -> Self 151 pub fn radroots_identity::profile::Profile::username(&self) -> core::option::Option<&radroots_identity::username::Username> 152 pub fn radroots_identity::profile::Profile::with_username(self, radroots_identity::username::Username) -> Self 153 pub struct radroots_identity::profile::PublicIdentity 154 impl radroots_identity::profile::PublicIdentity 155 pub const fn radroots_identity::profile::PublicIdentity::id(&self) -> radroots_identity::key::IdentityId 156 pub const fn radroots_identity::profile::PublicIdentity::new(radroots_identity::key::PublicKey) -> Self 157 pub fn radroots_identity::profile::PublicIdentity::profile(&self) -> core::option::Option<&radroots_identity::profile::Profile> 158 pub const fn radroots_identity::profile::PublicIdentity::public_key(&self) -> radroots_identity::key::PublicKey 159 pub fn radroots_identity::profile::PublicIdentity::try_from_parts(radroots_identity::key::IdentityId, radroots_identity::key::PublicKey, core::option::Option<radroots_identity::profile::Profile>) -> core::result::Result<Self, radroots_identity::Error> 160 pub fn radroots_identity::profile::PublicIdentity::with_profile(self, radroots_identity::profile::Profile) -> Self 161 impl core::convert::From<&radroots_identity::profile::PublicIdentity> for radroots_identity::account::AccountId 162 pub fn radroots_identity::account::AccountId::from(&radroots_identity::profile::PublicIdentity) -> Self 163 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::profile::PublicIdentity 164 pub fn radroots_identity::profile::PublicIdentity::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de> 165 pub mod radroots_identity::username 166 #[repr(transparent)] pub struct radroots_identity::username::Username(_) 167 impl radroots_identity::username::Username 168 pub fn radroots_identity::username::Username::as_str(&self) -> &str 169 pub fn radroots_identity::username::Username::into_string(self) -> alloc::string::String 170 pub fn radroots_identity::username::Username::parse(&str) -> core::result::Result<Self, radroots_identity::Error> 171 impl core::convert::AsRef<str> for radroots_identity::username::Username 172 pub fn radroots_identity::username::Username::as_ref(&self) -> &str 173 impl core::convert::TryFrom<&str> for radroots_identity::username::Username 174 pub type radroots_identity::username::Username::Error = radroots_identity::Error 175 pub fn radroots_identity::username::Username::try_from(&str) -> core::result::Result<Self, Self::Error> 176 impl core::convert::TryFrom<alloc::string::String> for radroots_identity::username::Username 177 pub type radroots_identity::username::Username::Error = radroots_identity::Error 178 pub fn radroots_identity::username::Username::try_from(alloc::string::String) -> core::result::Result<Self, Self::Error> 179 impl core::fmt::Debug for radroots_identity::username::Username 180 pub fn radroots_identity::username::Username::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 181 impl core::fmt::Display for radroots_identity::username::Username 182 pub fn radroots_identity::username::Username::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 183 impl core::str::traits::FromStr for radroots_identity::username::Username 184 pub type radroots_identity::username::Username::Err = radroots_identity::Error 185 pub fn radroots_identity::username::Username::from_str(&str) -> core::result::Result<Self, Self::Err> 186 impl serde_core::ser::Serialize for radroots_identity::username::Username 187 pub fn radroots_identity::username::Username::serialize<S>(&self, S) -> core::result::Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: serde_core::ser::Serializer 188 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::username::Username 189 pub fn radroots_identity::username::Username::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de> 190 pub const radroots_identity::username::MAX_LENGTH: usize 191 pub const radroots_identity::username::MIN_LENGTH: usize 192 #[non_exhaustive] pub enum radroots_identity::Error 193 pub radroots_identity::Error::AccountIdMismatch 194 pub radroots_identity::Error::AccountUpdateRegressed 195 pub radroots_identity::Error::AccountUpdateRegressed::current_updated_at_unix: u64 196 pub radroots_identity::Error::AccountUpdateRegressed::proposed_updated_at_unix: u64 197 pub radroots_identity::Error::AccountUpdatedBeforeCreated 198 pub radroots_identity::Error::AccountUpdatedBeforeCreated::created_at_unix: u64 199 pub radroots_identity::Error::AccountUpdatedBeforeCreated::updated_at_unix: u64 200 pub radroots_identity::Error::IdentityIdMismatch 201 pub radroots_identity::Error::InvalidByteLength 202 pub radroots_identity::Error::InvalidByteLength::actual: usize 203 pub radroots_identity::Error::InvalidByteLength::expected: usize 204 pub radroots_identity::Error::InvalidHexCharacter 205 pub radroots_identity::Error::InvalidHexCharacter::index: usize 206 pub radroots_identity::Error::InvalidHexLength 207 pub radroots_identity::Error::InvalidHexLength::actual: usize 208 pub radroots_identity::Error::InvalidHexLength::expected: usize 209 pub radroots_identity::Error::InvalidPublicKeyBytes 210 pub radroots_identity::Error::InvalidUsernameCharacter 211 pub radroots_identity::Error::InvalidUsernameCharacter::index: usize 212 pub radroots_identity::Error::InvalidUsernameDotPlacement 213 pub radroots_identity::Error::InvalidUsernameLength 214 pub radroots_identity::Error::InvalidUsernameLength::actual: usize 215 pub radroots_identity::Error::InvalidUsernameLength::max: usize 216 pub radroots_identity::Error::InvalidUsernameLength::min: usize 217 #[repr(transparent)] pub struct radroots_identity::AccountId(_) 218 impl radroots_identity::account::AccountId 219 pub const radroots_identity::account::AccountId::BYTE_LENGTH: usize 220 pub const radroots_identity::account::AccountId::HEX_LENGTH: usize 221 pub const fn radroots_identity::account::AccountId::as_bytes(&self) -> &[u8; 32] 222 pub fn radroots_identity::account::AccountId::from_bytes([u8; 32]) -> core::result::Result<Self, radroots_identity::Error> 223 pub fn radroots_identity::account::AccountId::from_hex(&str) -> core::result::Result<Self, radroots_identity::Error> 224 pub fn radroots_identity::account::AccountId::from_slice(&[u8]) -> core::result::Result<Self, radroots_identity::Error> 225 pub const fn radroots_identity::account::AccountId::into_bytes(self) -> [u8; 32] 226 pub fn radroots_identity::account::AccountId::to_hex(self) -> alloc::string::String 227 impl radroots_identity::account::AccountId 228 pub const fn radroots_identity::account::AccountId::from_identity_id(radroots_identity::key::IdentityId) -> Self 229 pub const fn radroots_identity::account::AccountId::from_public_identity(&radroots_identity::profile::PublicIdentity) -> Self 230 impl core::convert::AsRef<[u8]> for radroots_identity::account::AccountId 231 pub fn radroots_identity::account::AccountId::as_ref(&self) -> &[u8] 232 impl core::convert::From<&radroots_identity::profile::PublicIdentity> for radroots_identity::account::AccountId 233 pub fn radroots_identity::account::AccountId::from(&radroots_identity::profile::PublicIdentity) -> Self 234 impl core::convert::From<radroots_identity::key::IdentityId> for radroots_identity::account::AccountId 235 pub fn radroots_identity::account::AccountId::from(radroots_identity::key::IdentityId) -> Self 236 impl core::convert::TryFrom<&[u8]> for radroots_identity::account::AccountId 237 pub type radroots_identity::account::AccountId::Error = radroots_identity::Error 238 pub fn radroots_identity::account::AccountId::try_from(&[u8]) -> core::result::Result<Self, Self::Error> 239 impl core::convert::TryFrom<&str> for radroots_identity::account::AccountId 240 pub type radroots_identity::account::AccountId::Error = radroots_identity::Error 241 pub fn radroots_identity::account::AccountId::try_from(&str) -> core::result::Result<Self, Self::Error> 242 impl core::convert::TryFrom<[u8; 32]> for radroots_identity::account::AccountId 243 pub type radroots_identity::account::AccountId::Error = radroots_identity::Error 244 pub fn radroots_identity::account::AccountId::try_from([u8; 32]) -> core::result::Result<Self, Self::Error> 245 impl core::convert::TryFrom<alloc::string::String> for radroots_identity::account::AccountId 246 pub type radroots_identity::account::AccountId::Error = radroots_identity::Error 247 pub fn radroots_identity::account::AccountId::try_from(alloc::string::String) -> core::result::Result<Self, Self::Error> 248 impl core::fmt::Debug for radroots_identity::account::AccountId 249 pub fn radroots_identity::account::AccountId::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 250 impl core::fmt::Display for radroots_identity::account::AccountId 251 pub fn radroots_identity::account::AccountId::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 252 impl core::str::traits::FromStr for radroots_identity::account::AccountId 253 pub type radroots_identity::account::AccountId::Err = radroots_identity::Error 254 pub fn radroots_identity::account::AccountId::from_str(&str) -> core::result::Result<Self, Self::Err> 255 impl serde_core::ser::Serialize for radroots_identity::account::AccountId 256 pub fn radroots_identity::account::AccountId::serialize<S>(&self, S) -> core::result::Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: serde_core::ser::Serializer 257 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::account::AccountId 258 pub fn radroots_identity::account::AccountId::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de> 259 #[repr(transparent)] pub struct radroots_identity::IdentityId(_) 260 impl radroots_identity::key::IdentityId 261 pub const radroots_identity::key::IdentityId::BYTE_LENGTH: usize 262 pub const radroots_identity::key::IdentityId::HEX_LENGTH: usize 263 pub const fn radroots_identity::key::IdentityId::as_bytes(&self) -> &[u8; 32] 264 pub fn radroots_identity::key::IdentityId::from_bytes([u8; 32]) -> core::result::Result<Self, radroots_identity::Error> 265 pub fn radroots_identity::key::IdentityId::from_hex(&str) -> core::result::Result<Self, radroots_identity::Error> 266 pub fn radroots_identity::key::IdentityId::from_slice(&[u8]) -> core::result::Result<Self, radroots_identity::Error> 267 pub const fn radroots_identity::key::IdentityId::into_bytes(self) -> [u8; 32] 268 pub fn radroots_identity::key::IdentityId::to_hex(self) -> alloc::string::String 269 impl radroots_identity::key::IdentityId 270 pub const fn radroots_identity::key::IdentityId::from_public_key(radroots_identity::key::PublicKey) -> Self 271 impl core::convert::AsRef<[u8]> for radroots_identity::key::IdentityId 272 pub fn radroots_identity::key::IdentityId::as_ref(&self) -> &[u8] 273 impl core::convert::From<radroots_identity::key::IdentityId> for radroots_identity::account::AccountId 274 pub fn radroots_identity::account::AccountId::from(radroots_identity::key::IdentityId) -> Self 275 impl core::convert::From<radroots_identity::key::PublicKey> for radroots_identity::key::IdentityId 276 pub fn radroots_identity::key::IdentityId::from(radroots_identity::key::PublicKey) -> Self 277 impl core::convert::TryFrom<&[u8]> for radroots_identity::key::IdentityId 278 pub type radroots_identity::key::IdentityId::Error = radroots_identity::Error 279 pub fn radroots_identity::key::IdentityId::try_from(&[u8]) -> core::result::Result<Self, Self::Error> 280 impl core::convert::TryFrom<&str> for radroots_identity::key::IdentityId 281 pub type radroots_identity::key::IdentityId::Error = radroots_identity::Error 282 pub fn radroots_identity::key::IdentityId::try_from(&str) -> core::result::Result<Self, Self::Error> 283 impl core::convert::TryFrom<[u8; 32]> for radroots_identity::key::IdentityId 284 pub type radroots_identity::key::IdentityId::Error = radroots_identity::Error 285 pub fn radroots_identity::key::IdentityId::try_from([u8; 32]) -> core::result::Result<Self, Self::Error> 286 impl core::convert::TryFrom<alloc::string::String> for radroots_identity::key::IdentityId 287 pub type radroots_identity::key::IdentityId::Error = radroots_identity::Error 288 pub fn radroots_identity::key::IdentityId::try_from(alloc::string::String) -> core::result::Result<Self, Self::Error> 289 impl core::fmt::Debug for radroots_identity::key::IdentityId 290 pub fn radroots_identity::key::IdentityId::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 291 impl core::fmt::Display for radroots_identity::key::IdentityId 292 pub fn radroots_identity::key::IdentityId::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 293 impl core::str::traits::FromStr for radroots_identity::key::IdentityId 294 pub type radroots_identity::key::IdentityId::Err = radroots_identity::Error 295 pub fn radroots_identity::key::IdentityId::from_str(&str) -> core::result::Result<Self, Self::Err> 296 impl serde_core::ser::Serialize for radroots_identity::key::IdentityId 297 pub fn radroots_identity::key::IdentityId::serialize<S>(&self, S) -> core::result::Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: serde_core::ser::Serializer 298 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::key::IdentityId 299 pub fn radroots_identity::key::IdentityId::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de> 300 pub struct radroots_identity::Profile 301 impl radroots_identity::profile::Profile 302 pub const fn radroots_identity::profile::Profile::is_empty(&self) -> bool 303 pub const fn radroots_identity::profile::Profile::new() -> Self 304 pub fn radroots_identity::profile::Profile::username(&self) -> core::option::Option<&radroots_identity::username::Username> 305 pub fn radroots_identity::profile::Profile::with_username(self, radroots_identity::username::Username) -> Self 306 pub struct radroots_identity::PublicIdentity 307 impl radroots_identity::profile::PublicIdentity 308 pub const fn radroots_identity::profile::PublicIdentity::id(&self) -> radroots_identity::key::IdentityId 309 pub const fn radroots_identity::profile::PublicIdentity::new(radroots_identity::key::PublicKey) -> Self 310 pub fn radroots_identity::profile::PublicIdentity::profile(&self) -> core::option::Option<&radroots_identity::profile::Profile> 311 pub const fn radroots_identity::profile::PublicIdentity::public_key(&self) -> radroots_identity::key::PublicKey 312 pub fn radroots_identity::profile::PublicIdentity::try_from_parts(radroots_identity::key::IdentityId, radroots_identity::key::PublicKey, core::option::Option<radroots_identity::profile::Profile>) -> core::result::Result<Self, radroots_identity::Error> 313 pub fn radroots_identity::profile::PublicIdentity::with_profile(self, radroots_identity::profile::Profile) -> Self 314 impl core::convert::From<&radroots_identity::profile::PublicIdentity> for radroots_identity::account::AccountId 315 pub fn radroots_identity::account::AccountId::from(&radroots_identity::profile::PublicIdentity) -> Self 316 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::profile::PublicIdentity 317 pub fn radroots_identity::profile::PublicIdentity::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de> 318 #[repr(transparent)] pub struct radroots_identity::PublicKey(_) 319 impl radroots_identity::key::PublicKey 320 pub const radroots_identity::key::PublicKey::BYTE_LENGTH: usize 321 pub const radroots_identity::key::PublicKey::HEX_LENGTH: usize 322 pub const fn radroots_identity::key::PublicKey::as_bytes(&self) -> &[u8; 32] 323 pub fn radroots_identity::key::PublicKey::from_bytes([u8; 32]) -> core::result::Result<Self, radroots_identity::Error> 324 pub fn radroots_identity::key::PublicKey::from_hex(&str) -> core::result::Result<Self, radroots_identity::Error> 325 pub fn radroots_identity::key::PublicKey::from_slice(&[u8]) -> core::result::Result<Self, radroots_identity::Error> 326 pub const fn radroots_identity::key::PublicKey::into_bytes(self) -> [u8; 32] 327 pub fn radroots_identity::key::PublicKey::to_hex(self) -> alloc::string::String 328 impl core::convert::AsRef<[u8]> for radroots_identity::key::PublicKey 329 pub fn radroots_identity::key::PublicKey::as_ref(&self) -> &[u8] 330 impl core::convert::From<radroots_identity::key::PublicKey> for radroots_identity::key::IdentityId 331 pub fn radroots_identity::key::IdentityId::from(radroots_identity::key::PublicKey) -> Self 332 impl core::convert::TryFrom<&[u8]> for radroots_identity::key::PublicKey 333 pub type radroots_identity::key::PublicKey::Error = radroots_identity::Error 334 pub fn radroots_identity::key::PublicKey::try_from(&[u8]) -> core::result::Result<Self, Self::Error> 335 impl core::convert::TryFrom<&str> for radroots_identity::key::PublicKey 336 pub type radroots_identity::key::PublicKey::Error = radroots_identity::Error 337 pub fn radroots_identity::key::PublicKey::try_from(&str) -> core::result::Result<Self, Self::Error> 338 impl core::convert::TryFrom<[u8; 32]> for radroots_identity::key::PublicKey 339 pub type radroots_identity::key::PublicKey::Error = radroots_identity::Error 340 pub fn radroots_identity::key::PublicKey::try_from([u8; 32]) -> core::result::Result<Self, Self::Error> 341 impl core::convert::TryFrom<alloc::string::String> for radroots_identity::key::PublicKey 342 pub type radroots_identity::key::PublicKey::Error = radroots_identity::Error 343 pub fn radroots_identity::key::PublicKey::try_from(alloc::string::String) -> core::result::Result<Self, Self::Error> 344 impl core::fmt::Debug for radroots_identity::key::PublicKey 345 pub fn radroots_identity::key::PublicKey::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 346 impl core::fmt::Display for radroots_identity::key::PublicKey 347 pub fn radroots_identity::key::PublicKey::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 348 impl core::str::traits::FromStr for radroots_identity::key::PublicKey 349 pub type radroots_identity::key::PublicKey::Err = radroots_identity::Error 350 pub fn radroots_identity::key::PublicKey::from_str(&str) -> core::result::Result<Self, Self::Err> 351 impl serde_core::ser::Serialize for radroots_identity::key::PublicKey 352 pub fn radroots_identity::key::PublicKey::serialize<S>(&self, S) -> core::result::Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: serde_core::ser::Serializer 353 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::key::PublicKey 354 pub fn radroots_identity::key::PublicKey::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de> 355 #[repr(transparent)] pub struct radroots_identity::Username(_) 356 impl radroots_identity::username::Username 357 pub fn radroots_identity::username::Username::as_str(&self) -> &str 358 pub fn radroots_identity::username::Username::into_string(self) -> alloc::string::String 359 pub fn radroots_identity::username::Username::parse(&str) -> core::result::Result<Self, radroots_identity::Error> 360 impl core::convert::AsRef<str> for radroots_identity::username::Username 361 pub fn radroots_identity::username::Username::as_ref(&self) -> &str 362 impl core::convert::TryFrom<&str> for radroots_identity::username::Username 363 pub type radroots_identity::username::Username::Error = radroots_identity::Error 364 pub fn radroots_identity::username::Username::try_from(&str) -> core::result::Result<Self, Self::Error> 365 impl core::convert::TryFrom<alloc::string::String> for radroots_identity::username::Username 366 pub type radroots_identity::username::Username::Error = radroots_identity::Error 367 pub fn radroots_identity::username::Username::try_from(alloc::string::String) -> core::result::Result<Self, Self::Error> 368 impl core::fmt::Debug for radroots_identity::username::Username 369 pub fn radroots_identity::username::Username::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 370 impl core::fmt::Display for radroots_identity::username::Username 371 pub fn radroots_identity::username::Username::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 372 impl core::str::traits::FromStr for radroots_identity::username::Username 373 pub type radroots_identity::username::Username::Err = radroots_identity::Error 374 pub fn radroots_identity::username::Username::from_str(&str) -> core::result::Result<Self, Self::Err> 375 impl serde_core::ser::Serialize for radroots_identity::username::Username 376 pub fn radroots_identity::username::Username::serialize<S>(&self, S) -> core::result::Result<<S as serde_core::ser::Serializer>::Ok, <S as serde_core::ser::Serializer>::Error> where S: serde_core::ser::Serializer 377 impl<'de> serde_core::de::Deserialize<'de> for radroots_identity::username::Username 378 pub fn radroots_identity::username::Username::deserialize<D>(D) -> core::result::Result<Self, <D as serde_core::de::Deserializer>::Error> where D: serde_core::de::Deserializer<'de>