firestore-path 1.0.6

A Firestore path helper
Documentation
/// An error that occurs in this crate.
#[derive(Debug, thiserror::Error)]
#[error(transparent)]
pub struct Error(#[from] ErrorKind);

#[derive(Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, thiserror::Error)]
pub(crate) enum ErrorKind {
    #[error("collection path conversion {0}")]
    CollectionPathConversion(String),
    #[error("contains invalid charactor")]
    ContainsInvalidCharacter,
    #[error("contains slash")]
    ContainsSlash,
    #[error("document id conversion {0}")]
    DocumentIdConversion(String),
    #[error("document path conversion {0}")]
    DocumentPathConversion(String),
    #[error("ends with hyphen")]
    EndsWithHyphen,
    #[error("invalid name")]
    InvalidName,
    #[error("invalid number of path components")]
    InvalidNumberOfPathComponents,
    #[error("byte length exceeded")]
    LengthOutOfBounds,
    #[error("matches the regular expression `__.*__`")]
    MatchesReservedIdPattern,
    #[error("not contains slash")]
    NotContainsSlash,
    #[error("project id conversion {0}")]
    ProjectIdConversion(String),
    #[error("single period or double periods")]
    SinglePeriodOrDoublePeriods,
    #[error("starts with non letter")]
    StartsWithNonLetter,
}