pub enum SoftBindingQuery {
BindingGet {
alg: String,
value: String,
},
BindingPost {
alg: String,
value: String,
},
Content {
alg: Option<String>,
hint_alg: Option<String>,
hint_value: Option<String>,
consent: SoftBindingDisclosureConsent,
},
Reference {
alg: Option<String>,
hint_alg: Option<String>,
hint_value: Option<String>,
reference_url: String,
asset_length: u64,
asset_type: Option<String>,
region: Option<Value>,
consent: SoftBindingDisclosureConsent,
},
}Expand description
One explicitly selected Soft Binding Resolution API query route.
Routes never fall back to one another. In particular, the resolver never
uploads asset unless Content is selected with UploadAsset consent.
Variants§
BindingGet
GET /matches/byBinding, preferred for values that fit in a URL.
BindingPost
POST /matches/byBinding, for large values.
Content
POST /matches/byContent, uploading the asset bytes.
Fields
§
consent: SoftBindingDisclosureConsentReference
Optional POST /matches/byReference, disclosing an HTTPS asset URL.
Trait Implementations§
Source§impl Clone for SoftBindingQuery
impl Clone for SoftBindingQuery
Source§impl Debug for SoftBindingQuery
impl Debug for SoftBindingQuery
Source§impl<'de> Deserialize<'de> for SoftBindingQuery
impl<'de> Deserialize<'de> for SoftBindingQuery
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 SoftBindingQuery
impl RefUnwindSafe for SoftBindingQuery
impl Send for SoftBindingQuery
impl Sync for SoftBindingQuery
impl Unpin for SoftBindingQuery
impl UnsafeUnpin for SoftBindingQuery
impl UnwindSafe for SoftBindingQuery
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