pub struct LibraryTypeOptionsDto {
pub default_image_options: Vec<ImageOption>,
pub image_fetchers: Vec<LibraryOptionInfoDto>,
pub metadata_fetchers: Vec<LibraryOptionInfoDto>,
pub supported_image_types: Vec<ImageType>,
pub type_: Option<String>,
}
Expand description
Library type options dto.
JSON schema
{
"description": "Library type options dto.",
"type": "object",
"properties": {
"DefaultImageOptions": {
"description": "Gets or sets the default image options.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ImageOption"
}
},
"ImageFetchers": {
"description": "Gets or sets the image fetchers.",
"type": "array",
"items": {
"$ref": "#/components/schemas/LibraryOptionInfoDto"
}
},
"MetadataFetchers": {
"description": "Gets or sets the metadata fetchers.",
"type": "array",
"items": {
"$ref": "#/components/schemas/LibraryOptionInfoDto"
}
},
"SupportedImageTypes": {
"description": "Gets or sets the supported image types.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ImageType"
}
},
"Type": {
"description": "Gets or sets the type.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
Fields§
§default_image_options: Vec<ImageOption>
Gets or sets the default image options.
image_fetchers: Vec<LibraryOptionInfoDto>
Gets or sets the image fetchers.
metadata_fetchers: Vec<LibraryOptionInfoDto>
Gets or sets the metadata fetchers.
supported_image_types: Vec<ImageType>
Gets or sets the supported image types.
type_: Option<String>
Gets or sets the type.
Implementations§
Source§impl LibraryTypeOptionsDto
impl LibraryTypeOptionsDto
pub fn builder() -> LibraryTypeOptionsDto
Trait Implementations§
Source§impl Clone for LibraryTypeOptionsDto
impl Clone for LibraryTypeOptionsDto
Source§fn clone(&self) -> LibraryTypeOptionsDto
fn clone(&self) -> LibraryTypeOptionsDto
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 LibraryTypeOptionsDto
impl Debug for LibraryTypeOptionsDto
Source§impl<'de> Deserialize<'de> for LibraryTypeOptionsDto
impl<'de> Deserialize<'de> for LibraryTypeOptionsDto
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 From<&LibraryTypeOptionsDto> for LibraryTypeOptionsDto
impl From<&LibraryTypeOptionsDto> for LibraryTypeOptionsDto
Source§fn from(value: &LibraryTypeOptionsDto) -> Self
fn from(value: &LibraryTypeOptionsDto) -> Self
Converts to this type from the input type.
Source§impl From<LibraryTypeOptionsDto> for LibraryTypeOptionsDto
impl From<LibraryTypeOptionsDto> for LibraryTypeOptionsDto
Source§fn from(value: LibraryTypeOptionsDto) -> Self
fn from(value: LibraryTypeOptionsDto) -> Self
Converts to this type from the input type.
Source§impl Serialize for LibraryTypeOptionsDto
impl Serialize for LibraryTypeOptionsDto
Source§impl TryFrom<LibraryTypeOptionsDto> for LibraryTypeOptionsDto
impl TryFrom<LibraryTypeOptionsDto> for LibraryTypeOptionsDto
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: LibraryTypeOptionsDto) -> Result<Self, ConversionError>
fn try_from(value: LibraryTypeOptionsDto) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LibraryTypeOptionsDto
impl RefUnwindSafe for LibraryTypeOptionsDto
impl Send for LibraryTypeOptionsDto
impl Sync for LibraryTypeOptionsDto
impl Unpin for LibraryTypeOptionsDto
impl UnwindSafe for LibraryTypeOptionsDto
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