generated from PlexSheep/rs-base
feat: add setters for FormatOptions
cargo devel CI / cargo CI (push) Has been cancelled
Details
cargo devel CI / cargo CI (push) Has been cancelled
Details
This commit is contained in:
parent
8b419048ef
commit
47ae8e135b
|
@ -123,6 +123,11 @@ impl FormatOptions {
|
|||
self.numbers = numbers;
|
||||
}
|
||||
|
||||
/// set padding manually
|
||||
pub fn set_padding(&mut self, value: bool) {
|
||||
self.padding = value
|
||||
}
|
||||
|
||||
/// get padding
|
||||
pub fn padding(&self) -> bool {
|
||||
self.padding
|
||||
|
@ -132,6 +137,11 @@ impl FormatOptions {
|
|||
pub fn prefix(&self) -> bool {
|
||||
self.prefix
|
||||
}
|
||||
|
||||
/// set prefix manually
|
||||
pub fn set_prefix(&mut self, value: bool) {
|
||||
self.prefix = value;
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for FormatOptions {
|
||||
|
|
Reference in New Issue