summaryrefslogtreecommitdiffstats
path: root/src/segment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/segment.rs')
-rw-r--r--src/segment.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/segment.rs b/src/segment.rs
index d01034bb0..73e24b9a8 100644
--- a/src/segment.rs
+++ b/src/segment.rs
@@ -4,15 +4,16 @@ use std::fmt;
/// A segment is a single configurable element in a module. This will usually
/// contain a data point to provide context for the prompt's user
/// (e.g. The version that software is running).
+#[derive(Clone)]
pub struct Segment {
/// The segment's name, to be used in configuration and logging.
- _name: String,
+ pub _name: String,
/// The segment's style. If None, will inherit the style of the module containing it.
- style: Option<Style>,
+ pub style: Option<Style>,
/// The string value of the current segment.
- value: String,
+ pub value: String,
}
impl Segment {