Struct stac_api::Conformance
source · pub struct Conformance {
pub conforms_to: Vec<String>,
}
Expand description
To support “generic” clients that want to access multiple OGC API Features implementations - and not “just” a specific API / server, the server has to declare the conformance classes it implements and conforms to.
Fields§
§conforms_to: Vec<String>
The conformance classes it implements and conforms to.
Implementations§
source§impl Conformance
impl Conformance
sourcepub fn new() -> Conformance
pub fn new() -> Conformance
Creates a new conformance structure with only the core conformance class.
§Examples
use stac_api::Conformance;
let conformance = Conformance::new();
sourcepub fn ogcapi_features(self) -> Conformance
pub fn ogcapi_features(self) -> Conformance
Adds ogcapi-features conformance classes.
§Examples
use stac_api::Conformance;
let conformance = Conformance::new().ogcapi_features();
sourcepub fn item_search(self) -> Conformance
pub fn item_search(self) -> Conformance
Adds item search conformance class.
§Examples
use stac_api::Conformance;
let conformance = Conformance::new().item_search();
Trait Implementations§
source§impl Debug for Conformance
impl Debug for Conformance
source§impl Default for Conformance
impl Default for Conformance
source§impl<'de> Deserialize<'de> for Conformance
impl<'de> Deserialize<'de> for Conformance
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Conformance
impl RefUnwindSafe for Conformance
impl Send for Conformance
impl Sync for Conformance
impl Unpin for Conformance
impl UnwindSafe for Conformance
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