#[non_exhaustive]pub struct OnlineService {
pub at_type: Option<String>,
pub service: Option<String>,
pub uri: Option<String>,
pub user: Option<String>,
pub contexts: Option<BTreeMap<String, bool>>,
pub pref: Option<u32>,
pub label: Option<String>,
pub extra: Map<String, Value>,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.at_type: Option<String>Object type discriminator; SHOULD be "OnlineService" when present per RFC 9553 §1.3.4 (may be omitted in defaultType positions).
service: Option<String>Name of the online service or protocol (e.g. "GitHub", "Mastodon").
uri: Option<String>Identifier for the entity at this service. Must be a URI (RFC 3986).
user: Option<String>Username at the service.
contexts: Option<BTreeMap<String, bool>>Contexts in which to use the service (key → true).
pref: Option<u32>Preference order in 1..=100 (lower = more preferred).
label: Option<String>Custom label for the value.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl Clone for OnlineService
impl Clone for OnlineService
Source§fn clone(&self) -> OnlineService
fn clone(&self) -> OnlineService
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 OnlineService
impl Debug for OnlineService
Source§impl<'de> Deserialize<'de> for OnlineService
impl<'de> Deserialize<'de> for OnlineService
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OnlineService, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OnlineService, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OnlineService
Source§impl PartialEq for OnlineService
impl PartialEq for OnlineService
Source§impl Serialize for OnlineService
impl Serialize for OnlineService
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
impl StructuralPartialEq for OnlineService
Auto Trait Implementations§
impl Freeze for OnlineService
impl RefUnwindSafe for OnlineService
impl Send for OnlineService
impl Sync for OnlineService
impl Unpin for OnlineService
impl UnsafeUnpin for OnlineService
impl UnwindSafe for OnlineService
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