pub struct LazyLinkedModel<'a, T: DeserializeOwned, A: Access> {
pub url: &'a ItemUrl,
/* private fields */
}
Expand description
You can think of LazyLinkedModel as a lazy LinkedModel: it has methods for changing this resource, and can be transformed into a LinkedModel by calling LazyLinkedModel::get.
Fields§
§url: &'a ItemUrl
Implementations§
Source§impl<T: DeserializeOwned, A: Access> LazyLinkedModel<'_, T, A>
impl<T: DeserializeOwned, A: Access> LazyLinkedModel<'_, T, A>
pub async fn get(self) -> Result<LinkedModel<T, A>, CubeError>
Source§impl LazyLinkedModel<'_, NoteResponse, RwAccess>
impl LazyLinkedModel<'_, NoteResponse, RwAccess>
Auto Trait Implementations§
impl<'a, T, A> Freeze for LazyLinkedModel<'a, T, A>
impl<'a, T, A> !RefUnwindSafe for LazyLinkedModel<'a, T, A>
impl<'a, T, A> Send for LazyLinkedModel<'a, T, A>where
T: Send,
impl<'a, T, A> Sync for LazyLinkedModel<'a, T, A>where
T: Sync,
impl<'a, T, A> Unpin for LazyLinkedModel<'a, T, A>
impl<'a, T, A> !UnwindSafe for LazyLinkedModel<'a, T, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more