pub struct Organization {
pub created_at: DateTime<Utc>,
pub name: String,
pub slug: String,
pub url: Option<String>,
}Expand description
A Harmont organization the authenticated user is a member of.
JSON schema
{
"title": "Organization",
"description": "A Harmont organization the authenticated user is a
member of.",
"type": "object",
"required": [
"created_at",
"name",
"slug"
],
"properties": {
"created_at": {
"description": "When the organization was created.",
"type": "string",
"format": "date-time"
},
"name": {
"description": "Display name.",
"type": "string"
},
"slug": {
"description": "URL-safe unique slug identifying the
organization.",
"type": "string"
},
"url": {
"description": "The organization's website, if set.",
"type": [
"string",
"null"
]
}
}
}Fields§
§created_at: DateTime<Utc>When the organization was created.
name: StringDisplay name.
slug: StringURL-safe unique slug identifying the organization.
url: Option<String>The organization’s website, if set.
Trait Implementations§
Source§impl Clone for Organization
impl Clone for Organization
Source§fn clone(&self) -> Organization
fn clone(&self) -> Organization
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 Organization
impl Debug for Organization
Source§impl<'de> Deserialize<'de> for Organization
impl<'de> Deserialize<'de> for Organization
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Organization, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Organization, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Organization
impl Serialize for Organization
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Organization
impl RefUnwindSafe for Organization
impl Send for Organization
impl Sync for Organization
impl Unpin for Organization
impl UnsafeUnpin for Organization
impl UnwindSafe for Organization
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