pub struct Attribute {
pub name: String,
pub values: Vec<Option<String>>,
}
👎Deprecated since 0.1.4: rpsl-parser was renamed to rpsl-rs, please use that crate instead.
Expand description
Represents a RPSL attribute.
Fields§
§name: String
👎Deprecated since 0.1.4: rpsl-parser was renamed to rpsl-rs, please use that crate instead.
The name of the attribute.
values: Vec<Option<String>>
👎Deprecated since 0.1.4: rpsl-parser was renamed to rpsl-rs, please use that crate instead.
The values of the attribute. Single line attributes only have one value, while for multi-line attributes every line is a value. An empty value or one containing only whitespace is represented as None.
Implementations§
Trait Implementations§
Source§impl From<(&str, Vec<&str>)> for Attribute
Create a RPSL attribute from a tuple of slices parsed from RPSL text.
An empty value or one containing only whitespace is converted to None.
impl From<(&str, Vec<&str>)> for Attribute
Create a RPSL attribute from a tuple of slices parsed from RPSL text. An empty value or one containing only whitespace is converted to None.
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more