#[repr(u64)]pub enum KnownMagic {
Show 20 variants
RainMetaDocumentV1 = 18_377_652_714_897_045_620,
OpMetaV1 = 18_439_188_432_805_991_860,
DotrainV1 = 18_436_262_373_317_404_820,
RainlangV1 = 18_382_595_872_068_946_087,
SolidityAbiV2 = 18_439_425_400_648_969_438,
AuthoringMetaV1 = 18_440_520_426_328_744_501,
AuthoringMetaV2 = 18_398_046_991_237_009_555,
InterpreterCallerMetaV1 = 18_429_323_134_567_717_275,
ExpressionDeployerV2BytecodeV1 = 18_436_497_220_406_627_634,
RainlangSourceV1 = 18_380_052_776_113_893_362,
AddressList = 18_424_898_384_130_252_344,
DotrainSourceV1 = 18_420_108_340_039_479_449,
OrderBuilderStateV1 = 18_436_183_469_364_593_286,
RaindexSignedContextOracleV1 = 18_409_049_549_764_303_306,
WebDataV1 = 18_401_088_956_649_290_306,
OaSchema = 18_422_230_091_423_500_849,
OaHashList = 18_419_632_577_016_362_083,
OaStructure = 18_429_990_139_014_457_617,
OaTokenImage = 18_414_324_503_007_758_027,
OaTokenCredentialLinks = 18_427_666_357_608_587_785,
}Expand description
All known Rain magic numbers
Variants§
RainMetaDocumentV1 = 18_377_652_714_897_045_620
Prefixes every rain meta document. This is the only place it appears: an item claiming it as its own magic is malformed, not a nested document, and does not decode.
OpMetaV1 = 18_439_188_432_805_991_860
Ops meta v1
DotrainV1 = 18_436_262_373_317_404_820
Dotrain meta v1
RainlangV1 = 18_382_595_872_068_946_087
Rainlang meta v1
SolidityAbiV2 = 18_439_425_400_648_969_438
Solidity ABI meta v2
AuthoringMetaV1 = 18_440_520_426_328_744_501
Authoring meta v1
AuthoringMetaV2 = 18_398_046_991_237_009_555
InterpreterCallerMetaV1 = 18_429_323_134_567_717_275
InterpreterCaller meta v1
ExpressionDeployerV2BytecodeV1 = 18_436_497_220_406_627_634
ExpressionDeployer deployed bytecode meta v1
RainlangSourceV1 = 18_380_052_776_113_893_362
Rainlang source code meta v1
AddressList = 18_424_898_384_130_252_344
DotrainSourceV1 = 18_420_108_340_039_479_449
Dotrain source code meta v1
OrderBuilderStateV1 = 18_436_183_469_364_593_286
Order builder state meta v1
RaindexSignedContextOracleV1 = 18_409_049_549_764_303_306
Signed context oracle endpoint v1 Payload is raw UTF-8 bytes containing the oracle endpoint URL. Used in order metadata to tell takers where to GET signed context data.
WebDataV1 = 18_401_088_956_649_290_306
Web data v1
OaSchema = 18_422_230_091_423_500_849
OffchainAsset schema reference for offchain asset data
OaHashList = 18_419_632_577_016_362_083
OffchainAsset IPFS hash list for offchain assets
OaStructure = 18_429_990_139_014_457_617
OffchainAsset structured data (e.g. receipt information)
OaTokenImage = 18_414_324_503_007_758_027
OffchainAsset token image metadata
OaTokenCredentialLinks = 18_427_666_357_608_587_785
OffchainAsset token credential links
Implementations§
Source§impl KnownMagic
impl KnownMagic
pub fn to_prefix_bytes(&self) -> [u8; 8]
Trait Implementations§
Source§impl Clone for KnownMagic
impl Clone for KnownMagic
Source§fn clone(&self) -> KnownMagic
fn clone(&self) -> KnownMagic
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for KnownMagic
Source§impl Debug for KnownMagic
impl Debug for KnownMagic
Source§impl<'de> Deserialize<'de> for KnownMagic
impl<'de> Deserialize<'de> for KnownMagic
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>,
Source§impl Display for KnownMagic
impl Display for KnownMagic
Source§impl FromStr for KnownMagic
impl FromStr for KnownMagic
Source§impl IntoEnumIterator for KnownMagic
impl IntoEnumIterator for KnownMagic
type Iterator = KnownMagicIter
fn iter() -> KnownMagicIter ⓘ
Source§impl PartialEq for KnownMagic
impl PartialEq for KnownMagic
Source§impl Serialize for KnownMagic
impl Serialize for KnownMagic
impl StructuralPartialEq for KnownMagic
Source§impl TryFrom<&str> for KnownMagic
impl TryFrom<&str> for KnownMagic
Source§impl TryFrom<KnownMagic> for KnownMeta
impl TryFrom<KnownMagic> for KnownMeta
Auto Trait Implementations§
impl Freeze for KnownMagic
impl RefUnwindSafe for KnownMagic
impl Send for KnownMagic
impl Sync for KnownMagic
impl Unpin for KnownMagic
impl UnsafeUnpin for KnownMagic
impl UnwindSafe for KnownMagic
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
impl<'de, T> BorrowedRpcObject<'de> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> 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 moreimpl<T> IsFieldType<T> for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<'de, T> RpcBorrow<'de> for T
impl<T> RpcObject for T
impl<T> RpcRecv for T
impl<T> RpcSend for T
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.