sea-streamer
sea-streamer copied to clipboard
impl From<Url> for StreamerUri
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.