use super::types::ComputedProperty;
use super::types::PropertySource;
impl ComputedProperty {
pub fn new(name: impl Into<String>, value: impl Into<String>) -> Self {
Self {
name: name.into(),
value: value.into(),
source: PropertySource::Computed,
overridden: false,
}
}
pub fn source(mut self, source: PropertySource) -> Self {
self.source = source;
self
}
pub fn overridden(mut self) -> Self {
self.overridden = true;
self
}
}