pub struct UpdateDirective { /* private fields */ }Expand description
An authenticated update instruction supplied by the adopting service.
Implementations§
Source§impl UpdateDirective
impl UpdateDirective
Sourcepub fn resolve_artifact_url(
&self,
endpoint: &Url,
policy: ArtifactTransportPolicy,
) -> Result<Url>
pub fn resolve_artifact_url( &self, endpoint: &Url, policy: ArtifactTransportPolicy, ) -> Result<Url>
Resolves the artifact reference against a heartbeat/API endpoint.
Sourcepub fn validate_artifact_response_url(
&self,
endpoint: &Url,
response_url: &Url,
policy: ArtifactTransportPolicy,
) -> Result<()>
pub fn validate_artifact_response_url( &self, endpoint: &Url, response_url: &Url, policy: ArtifactTransportPolicy, ) -> Result<()>
Validates one redirect hop or the final response URL against the authenticated endpoint and transport policy.
Transport adapters must disable automatic redirects or invoke this for every redirect target and again for the final response URL.
Trait Implementations§
Source§impl Clone for UpdateDirective
impl Clone for UpdateDirective
Source§fn clone(&self) -> UpdateDirective
fn clone(&self) -> UpdateDirective
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateDirective
impl Debug for UpdateDirective
Source§impl PartialEq for UpdateDirective
impl PartialEq for UpdateDirective
Source§fn eq(&self, other: &UpdateDirective) -> bool
fn eq(&self, other: &UpdateDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UpdateDirective
impl StructuralPartialEq for UpdateDirective
Auto Trait Implementations§
impl Freeze for UpdateDirective
impl RefUnwindSafe for UpdateDirective
impl Send for UpdateDirective
impl Sync for UpdateDirective
impl Unpin for UpdateDirective
impl UnsafeUnpin for UpdateDirective
impl UnwindSafe for UpdateDirective
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.