pub struct AllocateExternalPartyRequest {
pub synchronizer: String,
pub onboarding_transactions: Vec<SignedTransaction>,
pub multi_hash_signatures: Vec<Signature>,
pub identity_provider_id: String,
pub wait_for_allocation: Option<bool>,
pub user_id: String,
}Expand description
Required authorization:
HasRight(ParticipantAdmin) OR IsAuthenticatedIdentityProviderAdmin(identity_provider_id) OR IsAuthenticatedUser(user_id)
Fields§
§synchronizer: StringTODO(#27670) support synchronizer aliases Synchronizer ID on which to onboard the party
Required
onboarding_transactions: Vec<SignedTransaction>TopologyTransactions to onboard the external party Can contain:
- A namespace for the party. This can be either a single NamespaceDelegation, or DecentralizedNamespaceDefinition along with its authorized namespace owners in the form of NamespaceDelegations. May be provided, if so it must be fully authorized by the signatures in this request combined with the existing topology state.
- A PartyToParticipant to register the hosting relationship of the party, and the party’s signing keys and threshold. Must be provided.
Required: must be non-empty
multi_hash_signatures: Vec<Signature>Optional signatures of the combined hash of all onboarding_transactions This may be used instead of providing signatures on each individual transaction
Optional: can be empty
identity_provider_id: StringThe id of the Identity Provider
If not set, assume the party is managed by the default identity provider.
Optional
wait_for_allocation: Option<bool>When true, this RPC will attempt to wait for the party to be allocated on the synchronizer before returning. When false, the allocation will happen asynchronously. This is a best effort only as this synchronization is only possible for non decentralized parties (single hosting node). For decentralized parties, this flag is ignored. Defaults to true.
Optional
user_id: StringThe user who will get the act_as rights to the newly allocated party. If set to an empty string (the default), no user will get rights to the party.
Optional
Implementations§
Source§impl AllocateExternalPartyRequest
impl AllocateExternalPartyRequest
Sourcepub fn wait_for_allocation(&self) -> bool
pub fn wait_for_allocation(&self) -> bool
Returns the value of wait_for_allocation, or the default value if wait_for_allocation is unset.
Trait Implementations§
Source§impl Clone for AllocateExternalPartyRequest
impl Clone for AllocateExternalPartyRequest
Source§fn clone(&self) -> AllocateExternalPartyRequest
fn clone(&self) -> AllocateExternalPartyRequest
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 AllocateExternalPartyRequest
impl Debug for AllocateExternalPartyRequest
Source§impl Default for AllocateExternalPartyRequest
impl Default for AllocateExternalPartyRequest
Source§fn default() -> AllocateExternalPartyRequest
fn default() -> AllocateExternalPartyRequest
Source§impl Message for AllocateExternalPartyRequest
impl Message for AllocateExternalPartyRequest
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 AllocateExternalPartyRequest
Auto Trait Implementations§
impl Freeze for AllocateExternalPartyRequest
impl RefUnwindSafe for AllocateExternalPartyRequest
impl Send for AllocateExternalPartyRequest
impl Sync for AllocateExternalPartyRequest
impl Unpin for AllocateExternalPartyRequest
impl UnsafeUnpin for AllocateExternalPartyRequest
impl UnwindSafe for AllocateExternalPartyRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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::RequestSource§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