pub struct CredentialsRole {
pub role: Role,
pub business_details: BusinessDetails,
pub party_id: PartyId,
pub country_code: CountryCode,
pub extensions: Extensions,
}Available on crate feature
v2_3_0 only.Expand description
One role a platform provides, with the party that fills it.
A platform can have the same role more than once, each with its own unique
party_idandcountry_code, for example when a CPO provides ‘white-label’ services for ‘virtual’ CPOs.
Spec: 2.3.0 §credentials_credentials_role_class
Fields§
§role: RoleType of role.
business_details: BusinessDetailsDetails of this party.
party_id: PartyIdCPO, eMSP (or other role) ID of this party.
country_code: CountryCodeISO-3166 alpha-2 country code of the country this party is operating in.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Implementations§
Source§impl CredentialsRole
impl CredentialsRole
Sourcepub fn builder() -> CredentialsRoleBuilder
pub fn builder() -> CredentialsRoleBuilder
Create an instance of CredentialsRole using the builder syntax
Trait Implementations§
Source§impl Clone for CredentialsRole
impl Clone for CredentialsRole
Source§fn clone(&self) -> CredentialsRole
fn clone(&self) -> CredentialsRole
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 CredentialsRole
impl Debug for CredentialsRole
Source§impl<'de> Deserialize<'de> for CredentialsRole
impl<'de> Deserialize<'de> for CredentialsRole
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
Source§impl JsonSchema for CredentialsRole
impl JsonSchema for CredentialsRole
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CredentialsRole
impl PartialEq for CredentialsRole
Source§impl Serialize for CredentialsRole
impl Serialize for CredentialsRole
impl StructuralPartialEq for CredentialsRole
Source§impl Validate for CredentialsRole
impl Validate for CredentialsRole
Auto Trait Implementations§
impl Freeze for CredentialsRole
impl RefUnwindSafe for CredentialsRole
impl Send for CredentialsRole
impl Sync for CredentialsRole
impl Unpin for CredentialsRole
impl UnsafeUnpin for CredentialsRole
impl UnwindSafe for CredentialsRole
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