#[non_exhaustive]pub struct GraphicsInspectRequest {
pub path: String,
pub origin: FlmOrigin,
pub resolved: Option<ResolvedImage>,
}Expand description
The request that the inspect stage passes to the inspector for one image
(GraphicsInspector::inspect).
Fields may be added to this struct in later versions. Therefore, create a
request with new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringThe path of the image file, as written in the document.
origin: FlmOriginThe origin of the source in which the image is written. Use its
canonical path (FlmOrigin::canonical_path) to resolve a relative
path. For an image written in the template of a user definition, this
is the origin of the source in which the call of the definition is
written.
resolved: Option<ResolvedImage>The file that the graphics resolver (GraphicsResolver) found for
the path, with its content. None if no graphics resolver is
registered. In this case, the inspector must find and read the file
itself.
Implementations§
Source§impl GraphicsInspectRequest
impl GraphicsInspectRequest
Sourcepub fn new(path: impl Into<String>, origin: FlmOrigin) -> GraphicsInspectRequest
pub fn new(path: impl Into<String>, origin: FlmOrigin) -> GraphicsInspectRequest
Returns a request for the path path, written in the source with the
origin origin. The request contains no resolved file.
Sourcepub fn resolved(self, resolved: ResolvedImage) -> GraphicsInspectRequest
pub fn resolved(self, resolved: ResolvedImage) -> GraphicsInspectRequest
Sets the file and its content that the graphics resolver found
(resolved), and returns the
request.
Trait Implementations§
Source§impl Clone for GraphicsInspectRequest
impl Clone for GraphicsInspectRequest
Source§impl Debug for GraphicsInspectRequest
impl Debug for GraphicsInspectRequest
impl Eq for GraphicsInspectRequest
Source§impl PartialEq for GraphicsInspectRequest
impl PartialEq for GraphicsInspectRequest
impl StructuralPartialEq for GraphicsInspectRequest
Auto Trait Implementations§
impl Forget for GraphicsInspectRequest
impl Freeze for GraphicsInspectRequest
impl Move for GraphicsInspectRequest
impl RefUnwindSafe for GraphicsInspectRequest
impl Send for GraphicsInspectRequest
impl Sync for GraphicsInspectRequest
impl Unpin for GraphicsInspectRequest
impl UnsafeUnpin for GraphicsInspectRequest
impl UnwindSafe for GraphicsInspectRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more