[][src]Struct iiif::InfoResponse

pub struct InfoResponse {
    pub status_code: u16,
    pub raw_json: String,
    pub info: Info,
    pub url: Url,
}

Contains the deserialized json info, the raw json string, the url and status code

Fields

status_code: u16raw_json: Stringinfo: Infourl: 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]

impl Debug for InfoResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.