pub struct ProfileSection {
pub avatar_url: Option<String>,
pub banner_url: Option<String>,
pub tagline: Option<String>,
pub categories: Vec<String>,
pub languages: Vec<String>,
pub timezone: Option<String>,
pub accent_color: Option<String>,
}Expand description
Profile section of an OAS Identity Document.
Provides human-readable presentation data for the entity. All fields are optional — entities expose only what they choose to.
§Examples
use oas_document::profile::ProfileSection;
let profile = ProfileSection {
avatar_url: Some("https://cdn.example.com/agent-42/avatar.png".to_string()),
banner_url: None,
tagline: Some("AI-powered financial analysis agent".to_string()),
categories: vec!["finance".to_string(), "analytics".to_string()],
languages: vec!["en".to_string(), "es".to_string()],
timezone: Some("America/New_York".to_string()),
accent_color: Some("#3B82F6".to_string()),
};
assert_eq!(profile.languages.len(), 2);Fields§
§avatar_url: Option<String>URL to the entity’s avatar image.
URL to the entity’s banner/header image.
tagline: Option<String>Short tagline or bio (max 280 chars, like a tweet).
categories: Vec<String>Category tags for discovery (e.g., “finance”, “customer-support”, “research”).
languages: Vec<String>Supported languages as ISO 639-1 codes (e.g., “en”, “es”, “zh”).
timezone: Option<String>IANA timezone identifier (e.g., “America/New_York”, “UTC”).
accent_color: Option<String>Accent/brand color as hex (e.g., “#3B82F6”).
Trait Implementations§
Source§impl Clone for ProfileSection
impl Clone for ProfileSection
Source§impl Debug for ProfileSection
impl Debug for ProfileSection
Source§impl<'de> Deserialize<'de> for ProfileSection
impl<'de> Deserialize<'de> for ProfileSection
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
impl Eq for ProfileSection
Source§impl PartialEq for ProfileSection
impl PartialEq for ProfileSection
Source§impl Serialize for ProfileSection
impl Serialize for ProfileSection
impl StructuralPartialEq for ProfileSection
Auto Trait Implementations§
impl Freeze for ProfileSection
impl RefUnwindSafe for ProfileSection
impl Send for ProfileSection
impl Sync for ProfileSection
impl Unpin for ProfileSection
impl UnsafeUnpin for ProfileSection
impl UnwindSafe for ProfileSection
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