pub struct Collection {
pub can_read: bool,
pub can_write: bool,
pub id: String,
pub media_types: [String; 1],
pub name: String,
pub title: String,
}
Expand description
Represents a single collection within a TAXII server.
A collection is a set of cyber threat intelligence expressed in STIX 2.0.
§Fields
can_read
: Indicates if the collection supports read operations.can_write
: Indicates if the collection supports write operations.id
: The unique identifier of the collection.media_types
: The media types supported by the collection.name
: The name of the collection.title
: A human-readable title for the collection.
Fields§
§can_read: bool
§can_write: bool
§id: String
§media_types: [String; 1]
§name: String
§title: String
Trait Implementations§
Source§impl Debug for Collection
impl Debug for Collection
Source§impl<'de> Deserialize<'de> for Collection
impl<'de> Deserialize<'de> for Collection
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
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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