mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-01-07 04:44:40 +00:00
21 lines
415 B
Rust
21 lines
415 B
Rust
#![allow(non_snake_case)]
|
|
use crate::core::{Attribute, Attributes};
|
|
pub struct AttributeBuilder {
|
|
inner: Attributes,
|
|
}
|
|
|
|
impl AttributeBuilder {
|
|
pub fn new() -> Self {
|
|
Self {
|
|
inner: Attributes::default(),
|
|
}
|
|
}
|
|
|
|
pub fn add(mut self, attribute: Attribute) -> Self {
|
|
self.inner.add(attribute);
|
|
self
|
|
}
|
|
|
|
pub fn build(self) -> Attributes { self.inner }
|
|
}
|