pub struct LatestCompatibleOfferResponseV2 {
pub status: ArtifactPeerStatusV2,
pub descriptor: Option<ArtifactDescriptor>,
}Expand description
Latest compatible signed descriptor selected by an update peer.
Fields§
§status: ArtifactPeerStatusV2Peer decision before byte streaming begins.
descriptor: Option<ArtifactDescriptor>Signed descriptor selected by the peer, when accepted.
Implementations§
Source§impl LatestCompatibleOfferResponseV2
impl LatestCompatibleOfferResponseV2
Sourcepub fn validate_against(
&self,
request: &LatestCompatibleOfferRequestV2,
) -> UpdateResult<()>
pub fn validate_against( &self, request: &LatestCompatibleOfferRequestV2, ) -> UpdateResult<()>
Validates the selected descriptor against the caller’s compatibility query.
Sourcepub fn verify_descriptor(
&self,
verifier: &dyn ArtifactAuthenticityVerifier,
) -> UpdateResult<()>
pub fn verify_descriptor( &self, verifier: &dyn ArtifactAuthenticityVerifier, ) -> UpdateResult<()>
Applies the caller’s local authenticity and trust policy.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LatestCompatibleOfferResponseV2
impl<'de> Deserialize<'de> for LatestCompatibleOfferResponseV2
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 LatestCompatibleOfferResponseV2
impl StructuralPartialEq for LatestCompatibleOfferResponseV2
Auto Trait Implementations§
impl Freeze for LatestCompatibleOfferResponseV2
impl RefUnwindSafe for LatestCompatibleOfferResponseV2
impl Send for LatestCompatibleOfferResponseV2
impl Sync for LatestCompatibleOfferResponseV2
impl Unpin for LatestCompatibleOfferResponseV2
impl UnsafeUnpin for LatestCompatibleOfferResponseV2
impl UnwindSafe for LatestCompatibleOfferResponseV2
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