pub struct Org {
pub address: Option<Address>,
pub brand_color: Option<OrgBrandColor>,
pub legal_name: Option<String>,
pub logo: Option<String>,
pub logo_asset_id: Option<String>,
pub name: String,
pub vat_number: Option<String>,
pub website: Option<String>,
}Expand description
Org
JSON schema
{
"title": "Org",
"type": "object",
"required": [
"name"
],
"properties": {
"address": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/address"
}
]
},
"brand_color": {
"description": "Hex color",
"type": [
"string",
"null"
],
"pattern": "^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$"
},
"legal_name": {
"type": [
"string",
"null"
]
},
"logo": {
"type": [
"string",
"null"
],
"format": "uri"
},
"logo_asset_id": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"vat_number": {
"type": [
"string",
"null"
]
},
"website": {
"type": [
"string",
"null"
],
"format": "hostname"
}
},
"additionalProperties": false
}Fields§
§address: Option<Address>§brand_color: Option<OrgBrandColor>Hex color
legal_name: Option<String>§logo: Option<String>§logo_asset_id: Option<String>§name: String§vat_number: Option<String>§website: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Org
impl<'de> Deserialize<'de> for Org
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
Auto Trait Implementations§
impl Freeze for Org
impl RefUnwindSafe for Org
impl Send for Org
impl Sync for Org
impl Unpin for Org
impl UnsafeUnpin for Org
impl UnwindSafe for Org
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