pub struct Draft {
pub name: Option<String>,
pub group: Option<String>,
pub members: Option<Vec<Member>>,
pub state: Option<Value>,
}Expand description
What create takes. Every field is optional.
Fields§
§name: Option<String>§group: Option<String>A group you are a direct admin of, to own the room. Without it, you own it.
members: Option<Vec<Member>>§state: Option<Value>Trait Implementations§
Auto Trait Implementations§
impl Forget for Draft
impl Freeze for Draftwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Member>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnsafeUnpin for Draftwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Member>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for Draft
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