pub struct OrganizationResponse {Show 14 fields
pub cache_hit: Option<bool>,
pub cache_ttl: Option<i64>,
pub created_at: Option<DateTime<Utc>>,
pub deleted_at: Option<DateTime<Utc>>,
pub description: Option<String>,
pub hard_delete_at: Option<DateTime<Utc>>,
pub id: String,
pub metadata: Option<HashMap>,
pub name: LocalizedString,
pub parent_id: Option<String>,
pub parent_name: Option<LocalizedString>,
pub purge_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub user_roles: HashMap<String, Vec<Role>>,
}Expand description
OrganizationResponse
JSON schema
{
"allOf": [
{
"$ref": "#/components/schemas/Organization"
},
{
"oneOf": [
{
"type": "null"
},
{
"oneOf": [
{
"$ref": "#/components/schemas/StorageFeatures"
}
]
}
]
},
{
"type": "object",
"properties": {
"parent_name": {
"oneOf": [
{
"type": "null"
},
{
"oneOf": [
{
"$ref": "#/components/schemas/LocalizedString"
}
]
}
]
}
}
}
]
}Fields§
§cache_hit: Option<bool>§cache_ttl: Option<i64>§created_at: Option<DateTime<Utc>>§deleted_at: Option<DateTime<Utc>>§description: Option<String>Optional description.
hard_delete_at: Option<DateTime<Utc>>§id: StringUnique identifier (ULID).
metadata: Option<HashMap>§name: LocalizedString§parent_id: Option<String>Parent organization ID for hierarchy.
parent_name: Option<LocalizedString>§purge_at: Option<DateTime<Utc>>§updated_at: Option<DateTime<Utc>>§user_roles: HashMap<String, Vec<Role>>User ID to roles mapping for this org (keys are org IDs as strings).
Trait Implementations§
Source§impl Clone for OrganizationResponse
impl Clone for OrganizationResponse
Source§fn clone(&self) -> OrganizationResponse
fn clone(&self) -> OrganizationResponse
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 OrganizationResponse
impl Debug for OrganizationResponse
Source§impl<'de> Deserialize<'de> for OrganizationResponse
impl<'de> Deserialize<'de> for OrganizationResponse
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 OrganizationResponse
impl RefUnwindSafe for OrganizationResponse
impl Send for OrganizationResponse
impl Sync for OrganizationResponse
impl Unpin for OrganizationResponse
impl UnsafeUnpin for OrganizationResponse
impl UnwindSafe for OrganizationResponse
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