pub enum PublicInviteGrant {
PortalOpen {
door_image_url: Option<String>,
has_lights: bool,
id: String,
label: Option<Value>,
public_portal_id: String,
},
EntityAction {
action_id: String,
entity_id: String,
id: String,
label: Option<Value>,
payload: Option<Value>,
},
}Expand description
PublicInviteGrant
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"has_lights",
"id",
"kind",
"public_portal_id"
],
"properties": {
"door_image_url": {
"description": "Presigned URL for door image (loaded asynchronously as card background).",
"type": [
"string",
"null"
]
},
"has_lights": {
"description": "Whether the portal has light devices configured (controls light button visibility).",
"type": "boolean"
},
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"portal_open"
]
},
"label": {
"description": "Localized portal name: string or object { \"en\": \"...\", \"he\": \"...\" }."
},
"public_portal_id": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"action_id",
"entity_id",
"id",
"kind"
],
"properties": {
"action_id": {
"type": "string"
},
"entity_id": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"entity_action"
]
},
"label": {},
"payload": {}
}
}
]
}Variants§
PortalOpen
Fields
§
door_image_url: Option<String>Presigned URL for door image (loaded asynchronously as card background).
EntityAction
Trait Implementations§
Source§impl Clone for PublicInviteGrant
impl Clone for PublicInviteGrant
Source§fn clone(&self) -> PublicInviteGrant
fn clone(&self) -> PublicInviteGrant
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 PublicInviteGrant
impl Debug for PublicInviteGrant
Source§impl<'de> Deserialize<'de> for PublicInviteGrant
impl<'de> Deserialize<'de> for PublicInviteGrant
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 PublicInviteGrant
impl RefUnwindSafe for PublicInviteGrant
impl Send for PublicInviteGrant
impl Sync for PublicInviteGrant
impl Unpin for PublicInviteGrant
impl UnsafeUnpin for PublicInviteGrant
impl UnwindSafe for PublicInviteGrant
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