pub struct OptionsResponse {
pub allow: Vec<&'static str>,
pub accept_post: Option<&'static str>,
pub accept_patch: &'static str,
pub accept_ranges: &'static str,
pub cache_control: &'static str,
}Expand description
Build the set of values returned on OPTIONS for a Solid resource.
Allowadvertises methods the resource supports.Accept-Postis set for containers.Accept-Patchadvertises supported PATCH dialects.Accept-Ranges: bytesis always advertised so binary resources can be sliced withRange:requests.Cache-Controlmirrors the RDF variant policy since OPTIONS responses describe the RDF-shaped conneg surface (JSS #315).
Fields§
§allow: Vec<&'static str>§accept_post: Option<&'static str>§accept_patch: &'static str§accept_ranges: &'static str§cache_control: &'static strTrait Implementations§
Source§impl Clone for OptionsResponse
impl Clone for OptionsResponse
Source§fn clone(&self) -> OptionsResponse
fn clone(&self) -> OptionsResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OptionsResponse
impl RefUnwindSafe for OptionsResponse
impl Send for OptionsResponse
impl Sync for OptionsResponse
impl Unpin for OptionsResponse
impl UnsafeUnpin for OptionsResponse
impl UnwindSafe for OptionsResponse
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