[−][src]Struct iiif::InfoResponse
Contains the deserialized json info, the raw json string, the url and status code
Fields
status_code: u16
raw_json: String
info: Info
url: Url
Methods
impl InfoResponse
[src]
pub fn sizes(&self) -> Vec<InfoSize>
[src]
Returns a set of height and width pairs the client should use in the size parameter to request complete images at different sizes that the server has available. This may be used to let a client know the sizes that are available when the server does not support requests for arbitrary sizes, or simply as a hint that requesting an image of this size may result in a faster response. A request constructed with the w,h syntax using these sizes must be supported by the server, even if arbitrary width and height are not.
pub fn width(&self) -> usize
[src]
The width in pixels of the full image content, given as an integer.
pub fn height(&self) -> usize
[src]
The height in pixels of the full image content, given as an integer.
pub fn tiles(&self) -> Vec<Tile>
[src]
A set of descriptions of the parameters to use to request regions of the image (tiles) that are efficient for the server to deliver. Each description gives a width, optionally a height for non-square tiles, and a set of scale factors at which tiles of those dimensions are available.
pub fn attribution(&self) -> Vec<Attribution>
[src]
Might include copyright or ownership statements, or a simple acknowledgement of the providing institution
pub fn license(&self) -> Vec<String>
[src]
pub fn formats(&self) -> Vec<String>
[src]
A link to an external resource that describes the license or rights statement under which content obtained from the Image API service may be used.
pub fn qualities(&self) -> Vec<String>
[src]
The set of image quality parameter values available for the image. If not specified then clients should assume only qualities declared in the compliance level document.
pub fn supports(&self) -> Vec<String>
[src]
The set of features supported for the image. If not specified then clients should assume only features declared in the compliance level document.
Trait Implementations
impl Clone for InfoResponse
[src]
fn clone(&self) -> InfoResponse
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InfoResponse
[src]
Auto Trait Implementations
impl RefUnwindSafe for InfoResponse
impl Send for InfoResponse
impl Sync for InfoResponse
impl Unpin for InfoResponse
impl UnwindSafe for InfoResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,