-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch config to YAML #239
Changes from 2 commits
5278543
aa3b062
35874e8
ea9cfaa
f6f167b
ec76da7
3536c4f
6ca5077
a761727
c1393c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
#[derive(Debug, PartialEq, Eq)] | ||
pub struct Config { | ||
pub remote_machine: RemoteMachine, | ||
pub compression: Compression, | ||
pub remote: Remote, | ||
pub push: Push, | ||
pub pull: Pull, | ||
} | ||
|
||
#[derive(Debug, Eq, PartialEq)] | ||
pub struct RemoteMachine { | ||
pub struct Remote { | ||
pub host: String, | ||
} | ||
|
||
#[derive(Debug, Eq, PartialEq)] | ||
pub struct Compression { | ||
pub local: i64, | ||
pub remote: i64, | ||
pub struct Push { | ||
pub compression: i64, | ||
} | ||
|
||
#[derive(Debug, Eq, PartialEq)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you need both There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a great question my friend! I need equality for unit tests ( Removed |
||
pub struct Pull { | ||
pub compression: i64, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still —
i64
is too much.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to
u8