pub struct GetPreferredPackagesResponse {
pub package_references: Vec<PackageReference>,
pub synchronizer_id: String,
}Fields§
§package_references: Vec<PackageReference>The package references of the preferred packages. Must contain one package reference for each requested package-name. If you build command submissions whose content depends on the returned preferred packages, then we recommend submitting the preferred package-ids in the package_id_selection_preference of the command submission to avoid race conditions with concurrent changes of the on-ledger package vetting state. Required: must be non-empty
synchronizer_id: StringThe synchronizer for which the package preferences are computed. If the synchronizer_id was specified in the request, then it matches the request synchronizer_id. Required
Implementations§
Source§impl GetPreferredPackagesResponse
impl GetPreferredPackagesResponse
pub fn new( package_references: Vec<PackageReference>, synchronizer_id: String, ) -> GetPreferredPackagesResponse
Trait Implementations§
Source§impl Clone for GetPreferredPackagesResponse
impl Clone for GetPreferredPackagesResponse
Source§fn clone(&self) -> GetPreferredPackagesResponse
fn clone(&self) -> GetPreferredPackagesResponse
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 GetPreferredPackagesResponse
impl Debug for GetPreferredPackagesResponse
Source§impl Default for GetPreferredPackagesResponse
impl Default for GetPreferredPackagesResponse
Source§fn default() -> GetPreferredPackagesResponse
fn default() -> GetPreferredPackagesResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetPreferredPackagesResponse
impl<'de> Deserialize<'de> for GetPreferredPackagesResponse
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 StructuralPartialEq for GetPreferredPackagesResponse
Auto Trait Implementations§
impl Freeze for GetPreferredPackagesResponse
impl RefUnwindSafe for GetPreferredPackagesResponse
impl Send for GetPreferredPackagesResponse
impl Sync for GetPreferredPackagesResponse
impl Unpin for GetPreferredPackagesResponse
impl UnsafeUnpin for GetPreferredPackagesResponse
impl UnwindSafe for GetPreferredPackagesResponse
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