pub struct LogoPlacement {
pub slot: String,
pub logo_id: Uuid,
pub scale: u8,
pub slots: Vec<String>,
pub h_align: Option<String>,
pub v_align: Option<String>,
}Expand description
A logo image to composite into one of the nine placement slots, drawn at its native pixel size (optionally integer-doubled) and aligned within the slot’s free rectangle like a text label.
Fields§
§slot: Stringplacement-slot anchor name (top_left … center … bottom_right).
logo_id: Uuidid of the saved logo (saved_logos.logo_id) to draw.
scale: u8integer scale factor applied with nearest-neighbour sampling (no
blur). Must be 1, 2 or 4 (enforced in plan_logos).
slots: Vec<String>the slots this logo spans, as combined by the user (each a slot-anchor
name, including Self::slot). Empty → just Self::slot. When more
than one, the logo’s free rectangle is the largest fitting exactly those
slots’ thirds and reserves every slot listed.
h_align: Option<String>horizontal alignment within the (single-slot or spanned) free rectangle; absent → the slot’s outward default.
v_align: Option<String>vertical alignment within the free rectangle; absent → the slot’s outward default.
Trait Implementations§
Source§impl Clone for LogoPlacement
impl Clone for LogoPlacement
Source§fn clone(&self) -> LogoPlacement
fn clone(&self) -> LogoPlacement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LogoPlacement
impl Debug for LogoPlacement
Source§impl<'de> Deserialize<'de> for LogoPlacement
impl<'de> Deserialize<'de> for LogoPlacement
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>,
Auto Trait Implementations§
impl Freeze for LogoPlacement
impl RefUnwindSafe for LogoPlacement
impl Send for LogoPlacement
impl Sync for LogoPlacement
impl Unpin for LogoPlacement
impl UnsafeUnpin for LogoPlacement
impl UnwindSafe for LogoPlacement
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.