pub struct RoomValidation {
pub valid: bool,
pub room_id: String,
pub room: Option<Room>,
}Expand description
The result of RoomsResource::validate.
Fields§
§valid: boolWhether the id belongs to the caller: it matched a room_id or a
custom_room_id.
room_id: StringThe room id that was validated, echoed back.
room: Option<Room>The resolved room. Present only when valid.
Trait Implementations§
Source§impl Clone for RoomValidation
impl Clone for RoomValidation
Source§fn clone(&self) -> RoomValidation
fn clone(&self) -> RoomValidation
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 moreAuto Trait Implementations§
impl Freeze for RoomValidation
impl RefUnwindSafe for RoomValidation
impl Send for RoomValidation
impl Sync for RoomValidation
impl Unpin for RoomValidation
impl UnsafeUnpin for RoomValidation
impl UnwindSafe for RoomValidation
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