pub struct CoreConfig {
pub user_id: UserId,
pub device_id: DeviceId,
pub server_name: String,
}Expand description
Static identity a shell supplies once at MessengerCore::open time —
never re-derived, never changed for the lifetime of a device session
(plan §4.1).
Fields§
§user_id: UserIdThis account’s own user id.
device_id: DeviceIdThis device’s own, server-assigned device id.
server_name: StringThe homeserver’s own server name — not consumed by this crate’s own
logic yet (every id this core builds, including
MessengerCommand::CreateRoom’s, is either read whole off the wire
or supplied by a caller who already has one; CreateRoomKind has no
alias field), kept on CoreConfig because a shell already has to
know it to reach the homeserver at all, and a still-later piece
(minting a room alias’s local part into a full alias) will need it.
Trait Implementations§
Source§impl Clone for CoreConfig
impl Clone for CoreConfig
Source§impl Debug for CoreConfig
impl Debug for CoreConfig
impl Eq for CoreConfig
Source§impl PartialEq for CoreConfig
impl PartialEq for CoreConfig
impl StructuralPartialEq for CoreConfig
Auto Trait Implementations§
impl Freeze for CoreConfig
impl RefUnwindSafe for CoreConfig
impl Send for CoreConfig
impl Sync for CoreConfig
impl Unpin for CoreConfig
impl UnsafeUnpin for CoreConfig
impl UnwindSafe for CoreConfig
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