pub struct UpdateVettedPackagesRequest {
pub changes: Vec<VettedPackagesChange>,
pub dry_run: bool,
pub synchronizer_id: String,
pub expected_topology_serial: Option<PriorTopologySerial>,
pub update_vetted_packages_force_flags: Vec<i32>,
}Fields§
§changes: Vec<VettedPackagesChange>Changes to apply to the current vetting state of the participant on the specified synchronizer. The changes are applied in order. Any package not changed will keep their previous vetting state.
Required: must be non-empty
dry_run: boolIf dry_run is true, then the changes are only prepared, but not applied. If a request would trigger an error when run (e.g. TOPOLOGY_DEPENDENCIES_NOT_VETTED), it will also trigger an error when dry_run.
Use this flag to preview a change before applying it. Defaults to false.
Optional
synchronizer_id: StringIf set, the requested changes will take place on the specified synchronizer. If synchronizer_id is unset and the participant is only connected to a single synchronizer, that synchronizer will be used by default. If synchronizer_id is unset and the participant is connected to multiple synchronizers, the request will error out with PACKAGE_SERVICE_CANNOT_AUTODETECT_SYNCHRONIZER.
Optional
expected_topology_serial: Option<PriorTopologySerial>The serial of the last VettedPackages topology transaction of this
participant and on this synchronizer.
Execution of the request fails if this is not correct. Use this to guard against concurrent changes.
If left unspecified, no validation is done against the last transaction’s serial.
Optional
update_vetted_packages_force_flags: Vec<i32>Controls whether potentially unsafe vetting updates are allowed.
Optional: can be empty
Implementations§
Source§impl UpdateVettedPackagesRequest
impl UpdateVettedPackagesRequest
Sourcepub fn update_vetted_packages_force_flags(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<UpdateVettedPackagesForceFlag>> ⓘ
pub fn update_vetted_packages_force_flags( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<UpdateVettedPackagesForceFlag>> ⓘ
Returns an iterator which yields the valid enum values contained in update_vetted_packages_force_flags.
Sourcepub fn push_update_vetted_packages_force_flags(
&mut self,
value: UpdateVettedPackagesForceFlag,
)
pub fn push_update_vetted_packages_force_flags( &mut self, value: UpdateVettedPackagesForceFlag, )
Appends the provided enum value to update_vetted_packages_force_flags.
Trait Implementations§
Source§impl Clone for UpdateVettedPackagesRequest
impl Clone for UpdateVettedPackagesRequest
Source§fn clone(&self) -> UpdateVettedPackagesRequest
fn clone(&self) -> UpdateVettedPackagesRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateVettedPackagesRequest
impl Debug for UpdateVettedPackagesRequest
Source§impl Default for UpdateVettedPackagesRequest
impl Default for UpdateVettedPackagesRequest
Source§fn default() -> UpdateVettedPackagesRequest
fn default() -> UpdateVettedPackagesRequest
Source§impl Message for UpdateVettedPackagesRequest
impl Message for UpdateVettedPackagesRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl StructuralPartialEq for UpdateVettedPackagesRequest
Auto Trait Implementations§
impl Freeze for UpdateVettedPackagesRequest
impl RefUnwindSafe for UpdateVettedPackagesRequest
impl Send for UpdateVettedPackagesRequest
impl Sync for UpdateVettedPackagesRequest
impl Unpin for UpdateVettedPackagesRequest
impl UnsafeUnpin for UpdateVettedPackagesRequest
impl UnwindSafe for UpdateVettedPackagesRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request