Is unfortunate to have to add another method to the Object trait to achieve this. But not sure of another way to implement a generic way to pull an owned T::Id out of Expandable<T> without cloning (ran into needing this when using this next branch, but think it's probably relatively common since most requests won't set expand, so users will probably only want the id in Expandable<T>.
Is unfortunate to have to add another method to the
Object
trait to achieve this. But not sure of another way to implement a generic way to pull an ownedT::Id
out ofExpandable<T>
without cloning (ran into needing this when using thisnext
branch, but think it's probably relatively common since most requests won't setexpand
, so users will probably only want the id inExpandable<T>
.