pub struct FetchedObject {
pub value: Value,
pub location: Url,
}Expand description
Return type of the fetch_object function
Fields§
§value: Value§location: UrlImplementations§
Source§impl FetchedObject
impl FetchedObject
Sourcepub fn verify_origin(&self) -> Result<(), FetchError>
pub fn verify_origin(&self) -> Result<(), FetchError>
Verifies the origin of this object
Sourcepub fn extract_fragment(&self) -> Result<JsonValue, FetchError>
pub fn extract_fragment(&self) -> Result<JsonValue, FetchError>
Extracts the fragment if location URL contains a fragment ID
Auto Trait Implementations§
impl Freeze for FetchedObject
impl RefUnwindSafe for FetchedObject
impl Send for FetchedObject
impl Sync for FetchedObject
impl Unpin for FetchedObject
impl UnsafeUnpin for FetchedObject
impl UnwindSafe for FetchedObject
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