Skip to content

Question about the design of LinkMessage attributes #222

@JKearnsl

Description

@JKearnsl

Hello! I would like to clarify whether attributes can be repeated for a single interface.

Is the use of Vec<LinkAttribute> related to the fact that attributes can be repeated, or is it done solely to save memory by not using a struct with Option<T>?

#[derive(Debug, PartialEq, Eq, Clone, Default)]
#[non_exhaustive]
pub struct LinkMessage {
pub header: LinkHeader,
pub attributes: Vec<LinkAttribute>,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions