pub struct AddRemoveCriteriaArgs {
pub associated_program: Option<AssociatedProgram>,
pub remove: Option<bool>,
}
Expand description
Structure representing the arguments for adding or removing criteria (i.e. collection or creator) in a project.
§Fields
associated_program
: Option AssociatedProgram representing the associated (trusted) program to be added or removed as a criterion.collection
: Option Public key representing the collection to be added or removed as a criterion.creator
: Option Public key representing the creator to be added or removed as a criterion.remove
: Option boolean value indicating whether the specified criteria should be added (false
orNone
) or removed (true
).
Fields§
§associated_program: Option<AssociatedProgram>
§remove: Option<bool>
Trait Implementations§
Source§impl BorshDeserialize for AddRemoveCriteriaArgs
impl BorshDeserialize for AddRemoveCriteriaArgs
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl Clone for AddRemoveCriteriaArgs
impl Clone for AddRemoveCriteriaArgs
Source§fn clone(&self) -> AddRemoveCriteriaArgs
fn clone(&self) -> AddRemoveCriteriaArgs
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 moreAuto Trait Implementations§
impl Freeze for AddRemoveCriteriaArgs
impl RefUnwindSafe for AddRemoveCriteriaArgs
impl Send for AddRemoveCriteriaArgs
impl Sync for AddRemoveCriteriaArgs
impl Unpin for AddRemoveCriteriaArgs
impl UnwindSafe for AddRemoveCriteriaArgs
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