sea-streamer icon indicating copy to clipboard operation
sea-streamer copied to clipboard

impl From<Url> for StreamerUri

Open carlocorradini opened this issue 1 month ago • 2 comments

Motivation

Currently we cannot convert a Url into a StreamerUri unless we transform it back to a String.

Proposed Solutions

impl From<Url> for StreamerUri {
    fn from(value: Url) -> Self {
        Self { nodes: vec![value] }
    }
}

Additional Information

Maybe in the future accept a generic that impl IntoStreamerUri. Something like sea-orm.

carlocorradini avatar May 22 '24 08:05 carlocorradini