pub async fn load_events(path_or_url: &str) -> Result<Self, Report> {
        if path_or_url.starts_with("http://") || path_or_url.starts_with("https://") {
            Self::load_url(path_or_url).await
        } else {
            let path = Path::new(path_or_url);
            if path.is_dir() {
                Self::load_directory(path)
            } else {
                Self::load_file(path)
            }
        }
    }
/// Load events from the given file, directory or URL.
Load events from the given file, directory or URL.
Load events from the given file directory or URL .
pub async fn load_events(path_or_url: &str) -> Result<Self, Report> {
        if path_or_url.starts_with("http://") || path_or_url.starts_with("https://") {
            Self::load_url(path_or_url).await
        } else {
            let path = Path::new(path_or_url);
            if path.is_dir() {
                Self::load_directory(path)
            } else {
                Self::load_file(path)
            }
        }
    }
pub async fn load_events ( path_or_url : & str ) -> Result < Self , Report > { if path_or_url . starts_with ( " " ) || path_or_url . starts_with ( " " ) { Self :: load_url ( path_or_url ) . await } else { let path = Path :: new ( path_or_url ) ; if path . is_dir ( ) { Self :: load_directory ( path ) } else { Self :: load_file ( path ) } } }
Load events from the given file, directory or URL.
Load events from the given file directory or URL .
path_or_url
&str
path_or_url
&str