You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ContentLocation struct has a private field, so can't be directly constructed. It's also got no new() method and doesn't seem to implement From, TryFrom, FromStr or anything else like that in any useful manner that I can see.
There are also no examples in the RustDoc, and the tests are all in the same module so can construct the struct directly even though my code can't.
So, what am I missing?
Cheers
The text was updated successfully, but these errors were encountered:
You're not missing anything obvious, it looks like the type just doesn't have any useful methods.
When the typed headers were first made as part of hyper, we accidentally exposed too many internals, and it required breaking changes, even for headers that someone might not care about. So when moved into this separate crate, internal privacy was improved, and only conservative methods that don't restrict internal refactors have been added.
It was easier to do that for some types. Others, people just haven't submitted proposals for what conservative methods to add.
I feel like I'm missing something obvious here.
The
ContentLocation
struct has a private field, so can't be directly constructed. It's also got nonew()
method and doesn't seem to implementFrom
,TryFrom
,FromStr
or anything else like that in any useful manner that I can see.There are also no examples in the RustDoc, and the tests are all in the same module so can construct the struct directly even though my code can't.
So, what am I missing?
Cheers
The text was updated successfully, but these errors were encountered: