pub struct ConformanceDeclaration {
pub conforms_to: Vec<String>,
}Expand description
Conformance declaration response (GET /conformance).
Lists the conformance classes that a server implements, enabling clients to discover which features and operations are available.
Fields§
§conforms_to: Vec<String>List of conformance class URIs that the server conforms to.
Implementations§
Source§impl ConformanceDeclaration
impl ConformanceDeclaration
Sourcepub fn new(classes: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn new(classes: impl IntoIterator<Item = impl Into<String>>) -> Self
Creates a conformance declaration from an iterable of URI strings.
Sourcepub fn supports(&self, class: &str) -> bool
pub fn supports(&self, class: &str) -> bool
Returns true if the declaration includes the given conformance class URI.
Sourcepub fn standard() -> Self
pub fn standard() -> Self
Builds the standard STAC API v1.0 conformance declaration.
Includes: Core, Browseable, Item Search (+ filter, sort, fields), OGC API Features, and Children.
Sourcepub fn with_transaction(self) -> Self
pub fn with_transaction(self) -> Self
Adds the Transaction extension conformance class to this declaration.
Sourcepub fn with_class(self, uri: impl Into<String>) -> Self
pub fn with_class(self, uri: impl Into<String>) -> Self
Adds an arbitrary conformance class URI to this declaration.
Trait Implementations§
Source§impl Clone for ConformanceDeclaration
impl Clone for ConformanceDeclaration
Source§fn clone(&self) -> ConformanceDeclaration
fn clone(&self) -> ConformanceDeclaration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConformanceDeclaration
impl Debug for ConformanceDeclaration
Source§impl Default for ConformanceDeclaration
impl Default for ConformanceDeclaration
Source§impl<'de> Deserialize<'de> for ConformanceDeclaration
impl<'de> Deserialize<'de> for ConformanceDeclaration
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
Source§impl PartialEq for ConformanceDeclaration
impl PartialEq for ConformanceDeclaration
Source§impl Serialize for ConformanceDeclaration
impl Serialize for ConformanceDeclaration
impl StructuralPartialEq for ConformanceDeclaration
Auto Trait Implementations§
impl Freeze for ConformanceDeclaration
impl RefUnwindSafe for ConformanceDeclaration
impl Send for ConformanceDeclaration
impl Sync for ConformanceDeclaration
impl Unpin for ConformanceDeclaration
impl UnsafeUnpin for ConformanceDeclaration
impl UnwindSafe for ConformanceDeclaration
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