This website works better with JavaScript.
git.jstrong.dev
Home
Explore
Help
Sign In
jstrong
/
markets
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
5
Wiki
Activity
Browse Source
set doc attribute on Exchange variants
master
Jonathan Strong
2 years ago
parent
cd752309a5
commit
64e9a48e89
1 changed files
with
4 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
src/crypto.rs
+ 4
- 1
src/crypto.rs
View File
@@ -703,7 +703,10 @@ macro_rules! make_exchange {
#[allow(non_camel_case_types)]
#[allow(non_camel_case_types)]
#[repr(u8)]
#[repr(u8)]
pub enum Exchange {
pub enum Exchange {
$($ticker = $code),*
$(
#[doc = $name]
$ticker = $code
),*
}
}
impl Exchange {
impl Exchange {
Write
Preview
Loading…
Cancel
Save