pub struct Day<T> {
pub series: AlbumSeries<DayBackend<T>>,
/* private fields */
}Expand description
One day’s album series and the file names in it.
Fields§
§series: AlbumSeries<DayBackend<T>>Implementations§
Source§impl<T: Smug> Day<T>
impl<T: Smug> Day<T>
Sourcepub async fn check_name(&self, file_name: &str, md5: &str) -> Result<NameCheck>
pub async fn check_name(&self, file_name: &str, md5: &str) -> Result<NameCheck>
Decide the name for a file called file_name with content md5,
reserving it (see NameCheck).
Sourcepub async fn name_uploaded(&self, name: &str, uri: &str, album_key: &str)
pub async fn name_uploaded(&self, name: &str, uri: &str, album_key: &str)
Record the image a reserved name was uploaded as.
Sourcepub async fn release_name(&self, name: &str)
pub async fn release_name(&self, name: &str)
Give back a name whose upload failed.
Sourcepub async fn album_keys(&self) -> HashSet<String>
pub async fn album_keys(&self) -> HashSet<String>
Keys of the day’s albums (existing and created by this run).
Auto Trait Implementations§
impl<T> !Freeze for Day<T>
impl<T> !RefUnwindSafe for Day<T>
impl<T> !UnwindSafe for Day<T>
impl<T> Send for Day<T>
impl<T> Sync for Day<T>
impl<T> Unpin for Day<T>
impl<T> UnsafeUnpin for Day<T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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