pub enum IdentifierError {
Empty,
TooLong {
identifier: String,
max: usize,
},
InvalidStartCharacter {
identifier: String,
character: char,
},
TooShortForBucketCreation {
identifier: String,
min: usize,
},
TooLongForBucketCreation {
identifier: String,
max: usize,
},
InvalidCharacter {
identifier: String,
character: char,
},
InvalidBucketCreationCharacter {
identifier: String,
character: char,
},
InvalidBucketCreationEdgeCharacter {
identifier: String,
character: char,
},
AdjacentBucketCreationPeriods {
identifier: String,
},
BucketCreationIdentifierLooksLikeIpAddress {
identifier: String,
},
PeriodAdjacentBucketCreationDash {
identifier: String,
},
}Expand description
Validation errors for ItemIdentifier.
Variants§
Empty
Identifier was empty after trimming.
TooLong
Identifier exceeds Internet Archive’s documented maximum length.
Fields
InvalidStartCharacter
Identifier starts with an unsupported character.
Fields
TooShortForBucketCreation
Identifier is too short for Internet Archive’s S3 bucket-creation layer.
Fields
TooLongForBucketCreation
Identifier is too long for Internet Archive’s S3 bucket-creation layer.
Fields
InvalidCharacter
Identifier contains an unsupported character.
Fields
InvalidBucketCreationCharacter
Identifier contains a character that the conservative IA-S3 bucket creation subset rejects.
Fields
InvalidBucketCreationEdgeCharacter
Identifier starts or ends with a character that the conservative IA-S3 bucket-creation subset rejects.
Fields
AdjacentBucketCreationPeriods
Identifier contains adjacent periods that S3 bucket creation rejects.
BucketCreationIdentifierLooksLikeIpAddress
Identifier has the shape of an IPv4 address, which S3 bucket creation rejects.
PeriodAdjacentBucketCreationDash
Identifier contains a period adjacent to a dash, which S3-compatible bucket creation rejects.
Trait Implementations§
Source§impl Clone for IdentifierError
impl Clone for IdentifierError
Source§fn clone(&self) -> IdentifierError
fn clone(&self) -> IdentifierError
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 IdentifierError
impl Debug for IdentifierError
Source§impl Display for IdentifierError
impl Display for IdentifierError
Source§impl Error for IdentifierError
impl Error for IdentifierError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<IdentifierError> for InternetArchiveError
impl From<IdentifierError> for InternetArchiveError
Source§fn from(source: IdentifierError) -> Self
fn from(source: IdentifierError) -> Self
Source§impl PartialEq for IdentifierError
impl PartialEq for IdentifierError
Source§fn eq(&self, other: &IdentifierError) -> bool
fn eq(&self, other: &IdentifierError) -> bool
self and other values to be equal, and is used by ==.