pub struct SubscriptionRequest {
pub filter: WatchFilter,
pub callback_url: String,
}Expand description
The POST /subscriptions body (RFC-ACDP-0018 §8.1), CLOSED.
Fields§
§filter: WatchFilterThe §6 filter hints are sent for.
callback_url: StringWhere hints are POSTed: https only. The registry applies the
§8.3 SSRF rules at creation and at every delivery.
Implementations§
Source§impl SubscriptionRequest
impl SubscriptionRequest
Sourcepub fn new(filter: WatchFilter, callback_url: impl Into<String>) -> Self
pub fn new(filter: WatchFilter, callback_url: impl Into<String>) -> Self
A request for filter, delivered to callback_url.
Sourcepub fn from_value(value: &Value) -> Result<Self, AcdpError>
pub fn from_value(value: &Value) -> Result<Self, AcdpError>
Parse and validate a request (the schema; not the §8.3 network
rules, which need DNS). Failures are AcdpError::SchemaViolation.
Trait Implementations§
Source§impl Clone for SubscriptionRequest
impl Clone for SubscriptionRequest
Source§impl Debug for SubscriptionRequest
impl Debug for SubscriptionRequest
Source§impl<'de> Deserialize<'de> for SubscriptionRequest
impl<'de> Deserialize<'de> for SubscriptionRequest
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
impl Eq for SubscriptionRequest
Source§impl PartialEq for SubscriptionRequest
impl PartialEq for SubscriptionRequest
Source§impl Serialize for SubscriptionRequest
impl Serialize for SubscriptionRequest
impl StructuralPartialEq for SubscriptionRequest
Auto Trait Implementations§
impl Freeze for SubscriptionRequest
impl RefUnwindSafe for SubscriptionRequest
impl Send for SubscriptionRequest
impl Sync for SubscriptionRequest
impl Unpin for SubscriptionRequest
impl UnsafeUnpin for SubscriptionRequest
impl UnwindSafe for SubscriptionRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.