pub struct LatestCompatibleOfferRequestV2 {
pub application_id: ApplicationId,
pub target: ArtifactTarget,
pub channel: String,
pub current_version: String,
pub runtime_version: String,
pub protocol_version: String,
}Expand description
Requests the latest signed release compatible with a Runtime host.
Fields§
§application_id: ApplicationIdApplication identity selected by the caller.
target: ArtifactTargetPlatform target selected by the caller.
channel: StringRequested update channel.
current_version: StringCurrently installed semantic version.
runtime_version: StringRuntime semantic version available on the host.
protocol_version: StringApplication/runtime protocol available on the host.
Implementations§
Source§impl LatestCompatibleOfferRequestV2
impl LatestCompatibleOfferRequestV2
Sourcepub fn validate(&self) -> UpdateResult<()>
pub fn validate(&self) -> UpdateResult<()>
Validates bounded compatibility-selection metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LatestCompatibleOfferRequestV2
impl<'de> Deserialize<'de> for LatestCompatibleOfferRequestV2
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 LatestCompatibleOfferRequestV2
impl StructuralPartialEq for LatestCompatibleOfferRequestV2
Auto Trait Implementations§
impl Freeze for LatestCompatibleOfferRequestV2
impl RefUnwindSafe for LatestCompatibleOfferRequestV2
impl Send for LatestCompatibleOfferRequestV2
impl Sync for LatestCompatibleOfferRequestV2
impl Unpin for LatestCompatibleOfferRequestV2
impl UnsafeUnpin for LatestCompatibleOfferRequestV2
impl UnwindSafe for LatestCompatibleOfferRequestV2
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