pub struct CreateCollectionRequestModel {
pub name: String,
pub external_id: Option<String>,
pub groups: Option<Vec<SelectionReadOnlyRequestModel>>,
pub users: Option<Vec<SelectionReadOnlyRequestModel>>,
}
Fields§
§name: String
§external_id: Option<String>
§groups: Option<Vec<SelectionReadOnlyRequestModel>>
§users: Option<Vec<SelectionReadOnlyRequestModel>>
Implementations§
Source§impl CreateCollectionRequestModel
impl CreateCollectionRequestModel
pub fn new(name: String) -> CreateCollectionRequestModel
Trait Implementations§
Source§impl Clone for CreateCollectionRequestModel
impl Clone for CreateCollectionRequestModel
Source§fn clone(&self) -> CreateCollectionRequestModel
fn clone(&self) -> CreateCollectionRequestModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateCollectionRequestModel
impl Debug for CreateCollectionRequestModel
Source§impl Default for CreateCollectionRequestModel
impl Default for CreateCollectionRequestModel
Source§fn default() -> CreateCollectionRequestModel
fn default() -> CreateCollectionRequestModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateCollectionRequestModel
impl<'de> Deserialize<'de> for CreateCollectionRequestModel
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
Source§impl PartialEq for CreateCollectionRequestModel
impl PartialEq for CreateCollectionRequestModel
Source§fn eq(&self, other: &CreateCollectionRequestModel) -> bool
fn eq(&self, other: &CreateCollectionRequestModel) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateCollectionRequestModel
Auto Trait Implementations§
impl Freeze for CreateCollectionRequestModel
impl RefUnwindSafe for CreateCollectionRequestModel
impl Send for CreateCollectionRequestModel
impl Sync for CreateCollectionRequestModel
impl Unpin for CreateCollectionRequestModel
impl UnwindSafe for CreateCollectionRequestModel
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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