#[repr(C)]pub struct QarMemberHubInvitationInit {
pub header: QarStructureHeader,
pub lifetime_seconds: u32,
pub max_uses: u32,
pub permissions: QarMemberHubInvitationPermissionFlags,
pub label: *const c_char,
}Expand description
@brief Create a member-hub invitation on the primary hub of this PC (qar_runtime_create_member_hub_invitation).
Zero in a field selects its default.
Fields§
§header: QarStructureHeader< QAR_STRUCTURE_TYPE_RUNTIME_CREATE_MEMBER_HUB_INVITATION_INIT
lifetime_seconds: u32How long the invitation can be used, in seconds. 0 -> 86400 (24 h); at most 604800 (7 days).
max_uses: u32How many hubs may join with it. 0 -> 1; at most 64, and never more than the calling app’s remaining quota of member hubs.
permissions: QarMemberHubInvitationPermissionFlags0 -> JOIN | REJOIN | BRING_DEVICES.
label: *const c_charOptional (NULL); a UTF-8 label of at most 64 bytes, shown in the primary hub’s visualizer next to the invitation.
Trait Implementations§
Source§impl Clone for QarMemberHubInvitationInit
impl Clone for QarMemberHubInvitationInit
impl Copy for QarMemberHubInvitationInit
Source§impl Debug for QarMemberHubInvitationInit
impl Debug for QarMemberHubInvitationInit
impl StructuralPartialEq for QarMemberHubInvitationInit
Auto Trait Implementations§
impl !Send for QarMemberHubInvitationInit
impl !Sync for QarMemberHubInvitationInit
impl Freeze for QarMemberHubInvitationInit
impl RefUnwindSafe for QarMemberHubInvitationInit
impl Unpin for QarMemberHubInvitationInit
impl UnsafeUnpin for QarMemberHubInvitationInit
impl UnwindSafe for QarMemberHubInvitationInit
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