pub struct Portal {
pub id: String,
pub position: [f32; 3],
pub rotation: [f32; 4],
pub scale: [f32; 3],
pub to: String,
pub label: String,
pub preview: PreviewPolicy,
pub extra: Extra,
}Expand description
A veil to another world — the hyperlink of the Thread.
Fields§
§id: String§position: [f32; 3]§rotation: [f32; 4]§scale: [f32; 3]§to: StringDestination Locator (thread://…), possibly on another host.
label: String§preview: PreviewPolicyHow much of the far side to show before stepping through.
extra: ExtraUnknown fields, preserved across a round trip (see Extra).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Portal
impl<'de> Deserialize<'de> for Portal
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 Portal
impl RefUnwindSafe for Portal
impl Send for Portal
impl Sync for Portal
impl Unpin for Portal
impl UnsafeUnpin for Portal
impl UnwindSafe for Portal
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