pub struct AddressExposure {
pub category: String,
pub direction: String,
pub exposure_type: String,
pub value: String,
}Expand description
AddressExposure
JSON schema
{
"type": "object",
"required": [
"category",
"direction",
"exposureType",
"value"
],
"properties": {
"category": {
"description": "DTO.KYT.ADDRESS_EXPOSURE.CATEGORY",
"examples": [
"exchange"
],
"type": "string"
},
"direction": {
"description": "DTO.KYT.ADDRESS_EXPOSURE.DIRECTION",
"examples": [
"both_directions"
],
"type": "string"
},
"exposureType": {
"description": "DTO.KYT.ADDRESS_EXPOSURE.EXPOSURE_TYPE",
"examples": [
"indirect"
],
"type": "string"
},
"value": {
"description": "DTO.KYT.ADDRESS_EXPOSURE.VALUE",
"examples": [
"424895.68594"
],
"type": "string"
}
}
}Fields§
§category: StringDTO.KYT.ADDRESS_EXPOSURE.CATEGORY
direction: StringDTO.KYT.ADDRESS_EXPOSURE.DIRECTION
exposure_type: StringDTO.KYT.ADDRESS_EXPOSURE.EXPOSURE_TYPE
value: StringDTO.KYT.ADDRESS_EXPOSURE.VALUE
Implementations§
Source§impl AddressExposure
impl AddressExposure
pub fn builder() -> AddressExposure
Trait Implementations§
Source§impl Clone for AddressExposure
impl Clone for AddressExposure
Source§fn clone(&self) -> AddressExposure
fn clone(&self) -> AddressExposure
Returns a duplicate of the value. Read more
1.0.0 · 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 AddressExposure
impl Debug for AddressExposure
Source§impl<'de> Deserialize<'de> for AddressExposure
impl<'de> Deserialize<'de> for AddressExposure
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 From<&AddressExposure> for AddressExposure
impl From<&AddressExposure> for AddressExposure
Source§fn from(value: &AddressExposure) -> Self
fn from(value: &AddressExposure) -> Self
Converts to this type from the input type.
Source§impl From<AddressExposure> for AddressExposure
impl From<AddressExposure> for AddressExposure
Source§fn from(value: AddressExposure) -> Self
fn from(value: AddressExposure) -> Self
Converts to this type from the input type.
Source§impl Serialize for AddressExposure
impl Serialize for AddressExposure
Source§impl TryFrom<AddressExposure> for AddressExposure
impl TryFrom<AddressExposure> for AddressExposure
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AddressExposure) -> Result<Self, ConversionError>
fn try_from(value: AddressExposure) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AddressExposure
impl RefUnwindSafe for AddressExposure
impl Send for AddressExposure
impl Sync for AddressExposure
impl Unpin for AddressExposure
impl UnwindSafe for AddressExposure
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